'5', 'aws_template_upload': 'true', 'aws_template_storage_bucket_path_autocreate': 'true', 'bootstrap_id': lambda: gen.calc.calculate_environment_variable('BOOTSTRAP_ID') # TODO(cmaloney): Add defaults for getting AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY from the # environment to set as keys. Not doing for now since they would need to be passed through # the `docker run` inside dcos_generate_config.sh }, 'must': gen.merge_dictionaries( { 'provider': 'aws', 'cloudformation_s3_url': calculate_cloudformation_s3_url, 'bootstrap_url': calculate_base_repository_url, 'reproducible_artifact_path': calculate_reproducible_artifact_path }, gen.build_deploy.aws.groups['master'][1]), 'conditional': { 'aws_template_upload': { 'true': { 'must': { 'aws_template_storage_region_name': calculate_aws_template_storage_region_name } }, 'false': {} } } })
gen.calc.validate_true_false(aws_template_storage_bucket_path_autocreate), validate_aws_template_storage_region_name, validate_aws_bucket_access ], 'default': { 'num_masters': '5', 'aws_template_upload': 'true', 'aws_template_storage_bucket_path_autocreate': 'true', 'bootstrap_id': lambda: gen.calc.calculate_environment_variable('BOOTSTRAP_ID') # TODO(cmaloney): Add defaults for getting AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY from the # environment to set as keys. Not doing for now since they would need to be passed through # the `docker run` inside dcos_generate_config.sh }, 'must': gen.merge_dictionaries({ 'provider': 'aws', 'cloudformation_s3_url': calculate_cloudformation_s3_url, 'bootstrap_url': calculate_base_repository_url, 'reproducible_artifact_path': calculate_reproducible_artifact_path }, gen.installer.aws.groups['master'][1]) } aws_advanced_parameters = { 'variables': { # TODO(cmaloney): Namespacing would be really handy here... 'aws_template_storage_bucket', 'aws_template_storage_bucket_path', 'aws_template_upload', 'aws_template_storage_bucket_path_autocreate', 'cloudformation_s3_url', 'provider', 'bootstrap_url',