Created
August 31, 2021 14:35
-
-
Save HoukasaurusRex/4c57905fe6a52c984b30654bf719bbc6 to your computer and use it in GitHub Desktop.
RDS cloudformation template generated from AWS CDK elasticbeanstalk module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Resources": { | |
"ecommerceapprdsdbcredentialsdevelopment0F585BD5": { | |
"Type": "AWS::SecretsManager::Secret", | |
"Properties": { | |
"GenerateSecretString": { | |
"GenerateStringKey": "password", | |
"SecretStringTemplate": "{\"username\":\"username\"}" | |
}, | |
"Name": "ecommerce-app-rds-db-credentials-development" | |
}, | |
"Metadata": { | |
"aws:cdk:path": "ecommerce-app-rds/ecommerce-app-rds-db-credentials-development/Resource" | |
} | |
}, | |
"ecommerceapprdscredentialsdevelopment494BF802": { | |
"Type": "AWS::SSM::Parameter", | |
"Properties": { | |
"Type": "String", | |
"Value": { | |
"Ref": "ecommerceapprdsdbcredentialsdevelopment0F585BD5" | |
}, | |
"Name": "ecommerce-app-rds-credentials-arn-development" | |
}, | |
"Metadata": { | |
"aws:cdk:path": "ecommerce-app-rds/ecommerce-app-rds-credentials-development/Resource" | |
} | |
}, | |
"ecommerceapprdsdbdevelopmentSubnetGroup2B380E95": { | |
"Type": "AWS::RDS::DBSubnetGroup", | |
"Properties": { | |
"DBSubnetGroupDescription": "Subnet group for ecommerce-app-rds-db-development database", | |
"SubnetIds": [ | |
{ | |
"Fn::ImportValue": "ecommerce-app-vpc:ExportsOutputRefecommerceappvpcdevelopmentPrivateSubnet1SubnetC416367BE70A36A2" | |
}, | |
{ | |
"Fn::ImportValue": "ecommerce-app-vpc:ExportsOutputRefecommerceappvpcdevelopmentPrivateSubnet2Subnet9BA8B35B3FAD4BFE" | |
} | |
] | |
}, | |
"Metadata": { | |
"aws:cdk:path": "ecommerce-app-rds/ecommerce-app-rds-db-development/SubnetGroup/Default" | |
} | |
}, | |
"ecommerceapprdsdbdevelopmentA62B1FAB": { | |
"Type": "AWS::RDS::DBInstance", | |
"Properties": { | |
"DBInstanceClass": "db.t2.micro", | |
"AllocatedStorage": "100", | |
"AllowMajorVersionUpgrade": true, | |
"AutoMinorVersionUpgrade": true, | |
"CopyTagsToSnapshot": true, | |
"DBName": "ecommerceAppDB", | |
"DBSubnetGroupName": { | |
"Ref": "ecommerceapprdsdbdevelopmentSubnetGroup2B380E95" | |
}, | |
"Engine": "postgres", | |
"EngineVersion": "12", | |
"MasterUsername": { | |
"Fn::Join": [ | |
"", | |
[ | |
"{{resolve:secretsmanager:", | |
{ | |
"Ref": "ecommerceapprdsdbcredentialsdevelopment0F585BD5" | |
}, | |
":SecretString:username::}}" | |
] | |
] | |
}, | |
"MasterUserPassword": { | |
"Fn::Join": [ | |
"", | |
[ | |
"{{resolve:secretsmanager:", | |
{ | |
"Ref": "ecommerceapprdsdbcredentialsdevelopment0F585BD5" | |
}, | |
":SecretString:password::}}" | |
] | |
] | |
}, | |
"PubliclyAccessible": false, | |
"StorageType": "gp2", | |
"VPCSecurityGroups": [ | |
{ | |
"Fn::ImportValue": "ecommerce-app-vpc:ExportsOutputFnGetAttecommerceappvpcrdssgdevelopment9640BAC7GroupIdE78428A1" | |
} | |
] | |
}, | |
"UpdateReplacePolicy": "Snapshot", | |
"DeletionPolicy": "Snapshot", | |
"Metadata": { | |
"aws:cdk:path": "ecommerce-app-rds/ecommerce-app-rds-db-development/Resource" | |
} | |
}, | |
"CDKMetadata": { | |
"Type": "AWS::CDK::Metadata", | |
"Properties": { | |
"Analytics": "v2:deflate64:H4sIAAAAAAAAE2VNOw7CMAw9C3uaUoTEimglxIboCdzUVAHVQbYDQ5W701DBwuT3/H6VrTZru17t4SWF6+/l5AKjnVoFdzd1IFGOTk19pQtKiOww41novfpAyeTgJOgYVUYgGJDn+Idn54KSERlzK3sazsAwoiJn/UeS4V7s1IBCB4KneRloXmtjR6hHDvGR/c3h7/G1ppQMhR7tTcpntbXVzm5XN/G+4EjqR7SX5b4B9qPzOvUAAAA=" | |
}, | |
"Metadata": { | |
"aws:cdk:path": "ecommerce-app-rds/CDKMetadata/Default" | |
}, | |
"Condition": "CDKMetadataAvailable" | |
} | |
}, | |
"Conditions": { | |
"CDKMetadataAvailable": { | |
"Fn::Or": [ | |
{ | |
"Fn::Or": [ | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"af-south-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ap-east-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ap-northeast-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ap-northeast-2" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ap-south-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ap-southeast-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ap-southeast-2" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"ca-central-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"cn-north-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"cn-northwest-1" | |
] | |
} | |
] | |
}, | |
{ | |
"Fn::Or": [ | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"eu-central-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"eu-north-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"eu-south-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"eu-west-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"eu-west-2" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"eu-west-3" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"me-south-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"sa-east-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"us-east-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"us-east-2" | |
] | |
} | |
] | |
}, | |
{ | |
"Fn::Or": [ | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"us-west-1" | |
] | |
}, | |
{ | |
"Fn::Equals": [ | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"us-west-2" | |
] | |
} | |
] | |
} | |
] | |
} | |
}, | |
"Outputs": { | |
"ExportsOutputRefecommerceapprdsdbcredentialsdevelopment0F585BD563FA0084": { | |
"Value": { | |
"Ref": "ecommerceapprdsdbcredentialsdevelopment0F585BD5" | |
}, | |
"Export": { | |
"Name": "ecommerce-app-rds:ExportsOutputRefecommerceapprdsdbcredentialsdevelopment0F585BD563FA0084" | |
} | |
}, | |
"ExportsOutputFnGetAttecommerceapprdsdbdevelopmentA62B1FABEndpointAddressB65CBCEA": { | |
"Value": { | |
"Fn::GetAtt": [ | |
"ecommerceapprdsdbdevelopmentA62B1FAB", | |
"Endpoint.Address" | |
] | |
}, | |
"Export": { | |
"Name": "ecommerce-app-rds:ExportsOutputFnGetAttecommerceapprdsdbdevelopmentA62B1FABEndpointAddressB65CBCEA" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment