Beispiel #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)
Beispiel #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)
Beispiel #3
0
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)
Beispiel #4
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)
Beispiel #5
0
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)
Beispiel #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)