in lib/configuration.py [0:0]
def get_environment_configuration(environment: str) -> dict:
"""
Provides all configuration values for the given target environment
@param environment str: The environment used to retrieve corresponding configuration
@return: dict:
"""
cloudformation_output_mapping = {
ENVIRONMENT: environment,
VPC_ID: f'{environment}VpcId',
AVAILABILITY_ZONE_1: f'{environment}AvailabilityZone1',
AVAILABILITY_ZONE_2: f'{environment}AvailabilityZone2',
AVAILABILITY_ZONE_3: f'{environment}AvailabilityZone3',
SUBNET_ID_1: f'{environment}SubnetId1',
SUBNET_ID_2: f'{environment}SubnetId2',
SUBNET_ID_3: f'{environment}SubnetId3',
ROUTE_TABLE_1: f'{environment}RouteTable1',
ROUTE_TABLE_2: f'{environment}RouteTable2',
ROUTE_TABLE_3: f'{environment}RouteTable3',
SHARED_SECURITY_GROUP_ID: f'{environment}SharedSecurityGroupId',
S3_KMS_KEY: f'{environment}S3KmsKeyArn',
S3_ACCESS_LOG_BUCKET: f'{environment}S3AccessLogBucket',
S3_RAW_BUCKET: f'{environment}RawBucketName',
S3_CONFORMED_BUCKET: f'{environment}ConformedBucketName',
S3_PURPOSE_BUILT_BUCKET: f'{environment}PurposeBuiltBucketName',
}
return {**cloudformation_output_mapping, **get_local_configuration(environment)}