Exemplo n.º 1
0
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile_name', 'media-service')
    properties = config._sections['properties']

    generate_files(aws_profile_name, OUTPUT_DIR, properties)
Exemplo n.º 2
0
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile_name',
                                       'media-service')
    properties = config._sections['properties']

    generate_files(aws_profile_name, OUTPUT_DIR, properties)
Exemplo n.º 3
0
Arquivo: main.py Projeto: won21kr/grid
def main():
    config = ConfigParser()
    config.read('settings/settings.ini')

    aws_profile_name = _default_option(config, 'aws', 'profile-name', 'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name')

    output_dir = _default_option(config, 'output', 'directory', 'output')

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, output_dir, properties)
Exemplo n.º 4
0
Arquivo: main.py Projeto: strogo/grid
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile-name', 'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name', None)

    if not cf_stack:
        raise Exception('No stack found in {}'.format(CONFIG_FILE))

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, OUTPUT_DIR, properties)
Exemplo n.º 5
0
Arquivo: main.py Projeto: won21kr/grid
def main():
    config = ConfigParser()
    config.read('settings/settings.ini')

    aws_profile_name = _default_option(config, 'aws', 'profile-name',
                                       'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name')

    output_dir = _default_option(config, 'output', 'directory', 'output')

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, output_dir,
                   properties)
Exemplo n.º 6
0
def main():
    config = ConfigParser()
    config.read(CONFIG_FILE)

    aws_profile_name = _default_option(config, 'aws', 'profile-name',
                                       'media-service')
    aws_region = _default_option(config, 'aws', 'region', 'eu-west-1')
    cf_stack = _default_option(config, 'aws', 'stack-name', None)

    if not cf_stack:
        raise Exception('No stack found in {}'.format(CONFIG_FILE))

    properties = config._sections['properties']

    generate_files(aws_profile_name, aws_region, cf_stack, OUTPUT_DIR,
                   properties)