Skip to content

Commit

Permalink
Add integration test and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jada-slalom committed Feb 12, 2024
1 parent f546b23 commit 4b73e88
Show file tree
Hide file tree
Showing 9 changed files with 772 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"Resources": {
"DatabaseSubnets56F17B9A": {
"Type": "AWS::DocDB::DBSubnetGroup",
"Properties": {
"DBSubnetGroupDescription": "Subnets for Database database",
"SubnetIds": [
"subnet-06fd4260",
"subnet-63883242",
"subnet-a3521dee",
"subnet-88b40cd7",
"subnet-3a18db0b",
"subnet-1f760711"
]
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"DatabaseSecurityGroup5C91FDCB": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "DocumentDB security group",
"SecurityGroupEgress": [
{
"CidrIp": "0.0.0.0/0",
"Description": "Allow all outbound traffic by default",
"IpProtocol": "-1"
}
],
"VpcId": "vpc-196aa264"
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"DatabaseSecret3B817195": {
"Type": "AWS::SecretsManager::Secret",
"Properties": {
"Description": {
"Fn::Join": [
"",
[
"Generated by the CDK for stack: ",
{
"Ref": "AWS::StackName"
}
]
]
},
"GenerateSecretString": {
"ExcludeCharacters": "\"@/",
"GenerateStringKey": "password",
"PasswordLength": 41,
"SecretStringTemplate": "{\"username\":\"clusteradmin\"}"
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"DatabaseSecretAttachmentE5D1B020": {
"Type": "AWS::SecretsManager::SecretTargetAttachment",
"Properties": {
"SecretId": {
"Ref": "DatabaseSecret3B817195"
},
"TargetId": {
"Ref": "DatabaseB269D8BB"
},
"TargetType": "AWS::DocDB::DBCluster"
}
},
"DatabaseB269D8BB": {
"Type": "AWS::DocDB::DBCluster",
"Properties": {
"DBSubnetGroupName": {
"Ref": "DatabaseSubnets56F17B9A"
},
"MasterUserPassword": {
"Fn::Join": [
"",
[
"{{resolve:secretsmanager:",
{
"Ref": "DatabaseSecret3B817195"
},
":SecretString:password::}}"
]
]
},
"MasterUsername": {
"Fn::Join": [
"",
[
"{{resolve:secretsmanager:",
{
"Ref": "DatabaseSecret3B817195"
},
":SecretString:username::}}"
]
]
},
"StorageEncrypted": true,
"VpcSecurityGroupIds": [
{
"Fn::GetAtt": [
"DatabaseSecurityGroup5C91FDCB",
"GroupId"
]
}
]
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"DatabaseInstance1844F58FD": {
"Type": "AWS::DocDB::DBInstance",
"Properties": {
"DBClusterIdentifier": {
"Ref": "DatabaseB269D8BB"
},
"DBInstanceClass": "db.t3.medium"
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4b73e88

Please sign in to comment.