diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets.json new file mode 100644 index 0000000000000..f81d09e342dd0 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets.json @@ -0,0 +1,20 @@ +{ + "version": "54.0.0", + "files": { + "cb10c1d833a5699125bfb5e5e395c4648694ac2ddef49ef0703dc22ff9a739c4": { + "displayName": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ Template", + "source": { + "path": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region-1700a028": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "cb10c1d833a5699125bfb5e5e395c4648694ac2ddef49ef0703dc22ff9a739c4.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.metadata.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.metadata.json new file mode 100644 index 0000000000000..d18aac56ffc99 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.metadata.json @@ -0,0 +1,607 @@ +{ + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ": [ + { + "type": "aws:cdk:creationStack", + "data": [ + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:222:19)", + "DefaultStackSynthesizer.addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:140:9)", + "DefaultStackSynthesizer.synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\default-synthesizer.js:260:18)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467:3)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:524:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "synthesizeTree (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:460:5)", + "synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:88:5)", + "App.synth (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stage.js:191:92)", + "App.synth (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\app.js:179:27)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:230:5)", + "DefaultStackSynthesizer.addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:140:9)", + "DefaultStackSynthesizer.synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\default-synthesizer.js:260:18)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467:3)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:524:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "synthesizeTree (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:460:5)", + "synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:88:5)", + "App.synth (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stage.js:191:92)", + "App.synth (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\app.js:179:27)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCB9E5F0B4" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:760:29)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:method", + "data": "*" + }, + { + "type": "aws:cdk:analytics:method", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:method", + "data": "*" + }, + { + "type": "aws:cdk:analytics:method", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:method", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:construct", + "data": "*" + }, + { + "type": "aws:cdk:analytics:method", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/IGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCIGWB7E252D3" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:815:29)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/VPCGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCVPCGW99B986DC" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:818:29)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SubnetGroup": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SecurityGroup": [ + { + "type": "aws:cdk:analytics:construct", + "data": "*" + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "OracleFromSnapshot63004C4E" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new DatabaseInstanceFromSnapshot (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:823:30)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:46:26)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1SubnetB4246D30" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1234:28)", + "new PublicSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1474:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableFEE4B781" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1254:27)", + "new PublicSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1474:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableAssociation0B0896DC" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1259:32)", + "new PublicSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1474:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1DefaultRoute91CEF279" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addDefaultInternetRoute (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1274:27)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:825: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:825:3)", + "Array.forEach (:)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:822:36)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1EIP6AD938E8" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addNatGateway (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1488:50)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "NatGatewayProvider.configureNat (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:138:33)", + "WrappedClass.createNatGateways (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:918:22)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:835:26)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1NATGatewayE0556630" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addNatGateway (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1486:25)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "NatGatewayProvider.configureNat (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:138:33)", + "WrappedClass.createNatGateways (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:918:22)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:835:26)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2Subnet74179F39" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1234:28)", + "new PublicSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1474:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1254:27)", + "new PublicSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1474:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTableAssociation5A808732" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1259:32)", + "new PublicSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1474:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1034:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2DefaultRouteB7481BBA" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addDefaultInternetRoute (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1274:27)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:825: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:825:3)", + "Array.forEach (:)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:822:36)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2EIP4947BC00" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addNatGateway (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1488:50)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "NatGatewayProvider.configureNat (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:138:33)", + "WrappedClass.createNatGateways (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:918:22)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:835:26)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2NATGateway3C070193" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addNatGateway (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1486:25)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "NatGatewayProvider.configureNat (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:138:33)", + "WrappedClass.createNatGateways (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:918:22)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:835:26)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1234:28)", + "new PrivateSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1527:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1254:27)", + "new PrivateSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1527:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableAssociation347902D1" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1259:32)", + "new PrivateSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1527:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1DefaultRouteAE1D6490" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addRoute (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1354:27)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "NatGatewayProvider.configureSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:150:16)", + "NatGatewayProvider.configureNat (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:144:18)", + "WrappedClass.createNatGateways (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:918:22)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:835:26)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2SubnetCFCDAA7A" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1234:28)", + "new PrivateSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1527:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1254:27)", + "new PrivateSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1527:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTableAssociation0C73D413" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new Subnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1259:32)", + "new PrivateSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1527:13)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1041:4)", + "Array.forEach (:)", + "WrappedClass.createSubnetResources (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1005:30)", + "WrappedClass.createSubnets (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:964:18)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:810:18)" + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2DefaultRouteF4F5CFD2" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "WrappedClass.addRoute (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:1354:27)", + "WrappedClass. (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\metadata-resource.js:67:35)", + "NatGatewayProvider.configureSubnet (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:150:16)", + "NatGatewayProvider.configureNat (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\nat.js:144:18)", + "WrappedClass.createNatGateways (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:918:22)", + "new Vpc (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\vpc.js:835:26)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:45:21)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SubnetGroup/Default": [ + { + "type": "aws:cdk:logicalId", + "data": "OracleFromSnapshotSubnetGroup42A93CC1" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new SubnetGroup (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\subnet-group.js:125:33)", + "new DatabaseInstanceNew (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:393:50)", + "new DatabaseInstanceSource (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:521:9)", + "new DatabaseInstanceFromSnapshot (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:784:13)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:46:26)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ], + "/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "OracleFromSnapshotSecurityGroup058D1E60" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "new SecurityGroup (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-ec2\\lib\\security-group.js:410:34)", + "new DatabaseInstanceNew (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:399:57)", + "new DatabaseInstanceSource (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:521:9)", + "new DatabaseInstanceFromSnapshot (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\aws-rds\\lib\\instance.js:784:13)", + "new TestStack (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:46:26)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:59:15)", + "...node internals..." + ] + } + ] +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.template.json new file mode 100644 index 0000000000000..9cd6ef1f4a84a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.template.json @@ -0,0 +1,535 @@ +{ + "Resources": { + "VPCB9E5F0B4": { + "Type": "AWS::EC2::VPC", + "Properties": { + "CidrBlock": "10.0.0.0/16", + "EnableDnsHostnames": true, + "EnableDnsSupport": true, + "InstanceTenancy": "default", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet1SubnetB4246D30": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.0.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet1RouteTableFEE4B781": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet1RouteTableAssociation0B0896DC": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet1DefaultRoute91CEF279": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet1EIP6AD938E8": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet1NATGatewayE0556630": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet1DefaultRoute91CEF279", + "VPCPublicSubnet1RouteTableAssociation0B0896DC" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet2Subnet74179F39": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.64.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet2RouteTable6F1A15F1": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet2RouteTableAssociation5A808732": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet2DefaultRouteB7481BBA": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet2EIP4947BC00": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPublicSubnet2NATGateway3C070193": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet2DefaultRouteB7481BBA", + "VPCPublicSubnet2RouteTableAssociation5A808732" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet1Subnet8BCA10E0": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.128.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet1RouteTableBE8A6027": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet1RouteTableAssociation347902D1": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet1DefaultRouteAE1D6490": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet2SubnetCFCDAA7A": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.192.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet2RouteTable0A19E10E": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet2RouteTableAssociation0C73D413": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCIGWB7E252D3": { + "Type": "AWS::EC2::InternetGateway", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "VPCVPCGW99B986DC": { + "Type": "AWS::EC2::VPCGatewayAttachment", + "Properties": { + "InternetGatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "OracleFromSnapshotSubnetGroup42A93CC1": { + "Type": "AWS::RDS::DBSubnetGroup", + "Properties": { + "DBSubnetGroupDescription": "Subnet group for OracleFromSnapshot database", + "SubnetIds": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "OracleFromSnapshotSecurityGroup058D1E60": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "Security group for OracleFromSnapshot database", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "OracleFromSnapshot63004C4E": { + "Type": "AWS::RDS::DBInstance", + "Properties": { + "AllocatedStorage": "100", + "CopyTagsToSnapshot": true, + "DBInstanceClass": "db.t3.medium", + "DBSnapshotIdentifier": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ", + "DBSubnetGroupName": { + "Ref": "OracleFromSnapshotSubnetGroup42A93CC1" + }, + "Engine": "oracle-se2", + "EngineVersion": "19.0.0.0.ru-2020-04.rur-2020-04.r1", + "ManageMasterUserPassword": true, + "StorageType": "gp2", + "VPCSecurityGroups": [ + { + "Fn::GetAtt": [ + "OracleFromSnapshotSecurityGroup058D1E60", + "GroupId" + ] + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "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." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/cdk.out new file mode 100644 index 0000000000000..433ef06634165 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"54.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/integ.json new file mode 100644 index 0000000000000..3ab32116c246b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/integ.json @@ -0,0 +1,13 @@ +{ + "version": "54.0.0", + "testCases": { + "test-rds-instance-from-snapshot-manage-master-password/DefaultTest": { + "stacks": [ + "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ" + ], + "assertionStack": "test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert", + "assertionStackName": "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97" + } + }, + "minimumCliVersion": "2.1126.0" +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/manifest.json new file mode 100644 index 0000000000000..9446a40dd191b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/manifest.json @@ -0,0 +1,617 @@ +{ + "version": "54.0.0", + "artifacts": { + "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cb10c1d833a5699125bfb5e5e395c4648694ac2ddef49ef0703dc22ff9a739c4.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.assets" + ], + "additionalMetadataFile": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ.metadata.json", + "displayName": "aws-cdk-rds-instance-from-snapshot-manage-master-password-integ" + }, + "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets" + ], + "additionalMetadataFile": "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.metadata.json", + "displayName": "test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + }, + "aws-cdk-lib/feature-flag-report": { + "type": "cdk:feature-flag-report", + "properties": { + "module": "aws-cdk-lib", + "flags": { + "@aws-cdk/aws-signer:signingProfileNamePassedToCfn": { + "userValue": true, + "recommendedValue": true, + "explanation": "Pass signingProfileName to CfnSigningProfile" + }, + "@aws-cdk/core:newStyleStackSynthesis": { + "recommendedValue": true, + "explanation": "Switch to new stack synthesis method which enables CI/CD", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/core:stackRelativeExports": { + "recommendedValue": true, + "explanation": "Name exports based on the construct paths relative to the stack, rather than the global construct path", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-ecs-patterns:secGroupsDisablesImplicitOpenListener": { + "userValue": true, + "recommendedValue": true, + "explanation": "Disable implicit openListener when custom security groups are provided" + }, + "@aws-cdk/aws-rds:lowercaseDbIdentifier": { + "recommendedValue": true, + "explanation": "Force lowercasing of RDS Cluster names in CDK", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": { + "recommendedValue": true, + "explanation": "Allow adding/removing multiple UsagePlanKeys independently", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-lambda:recognizeVersionProps": { + "recommendedValue": true, + "explanation": "Enable this feature flag to opt in to the updated logical id calculation for Lambda Version created using the `fn.currentVersion`.", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-lambda:recognizeLayerVersion": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable this feature flag to opt in to the updated logical id calculation for Lambda Version created using the `fn.currentVersion`." + }, + "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": { + "recommendedValue": true, + "explanation": "Enable this feature flag to have cloudfront distributions use the security policy TLSv1.2_2021 by default.", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/core:checkSecretUsage": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable this flag to make it impossible to accidentally use SecretValues in unsafe locations" + }, + "@aws-cdk/core:target-partitions": { + "recommendedValue": [ + "aws", + "aws-cn" + ], + "explanation": "What regions to include in lookup tables of environment agnostic stacks" + }, + "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": { + "userValue": true, + "recommendedValue": true, + "explanation": "ECS extensions will automatically add an `awslogs` driver if no logging is specified" + }, + "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable this feature flag to have Launch Templates generated by the `InstanceRequireImdsv2Aspect` use unique names." + }, + "@aws-cdk/aws-ecs:arnFormatIncludesClusterName": { + "userValue": true, + "recommendedValue": true, + "explanation": "ARN format used by ECS. In the new ARN format, the cluster name is part of the resource ID." + }, + "@aws-cdk/aws-iam:minimizePolicies": { + "userValue": true, + "recommendedValue": true, + "explanation": "Minimize IAM policies by combining Statements" + }, + "@aws-cdk/core:validateSnapshotRemovalPolicy": { + "userValue": true, + "recommendedValue": true, + "explanation": "Error on snapshot removal policies on resources that do not support it." + }, + "@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": { + "userValue": true, + "recommendedValue": true, + "explanation": "Generate key aliases that include the stack name" + }, + "@aws-cdk/aws-s3:createDefaultLoggingPolicy": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable this feature flag to create an S3 bucket policy by default in cases where an AWS service would automatically create the Policy if one does not exist." + }, + "@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": { + "userValue": true, + "recommendedValue": true, + "explanation": "Restrict KMS key policy for encrypted Queues a bit more" + }, + "@aws-cdk/aws-apigateway:disableCloudWatchRole": { + "userValue": true, + "recommendedValue": true, + "explanation": "Make default CloudWatch Role behavior safe for multiple API Gateways in one environment" + }, + "@aws-cdk/core:enablePartitionLiterals": { + "userValue": true, + "recommendedValue": true, + "explanation": "Make ARNs concrete if AWS partition is known" + }, + "@aws-cdk/aws-events:eventsTargetQueueSameAccount": { + "userValue": true, + "recommendedValue": true, + "explanation": "Event Rules may only push to encrypted SQS queues in the same account" + }, + "@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": { + "userValue": true, + "recommendedValue": true, + "explanation": "Avoid setting the \"ECS\" deployment controller when adding a circuit breaker" + }, + "@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable this feature to create default policy names for imported roles that depend on the stack the role is in." + }, + "@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": { + "userValue": true, + "recommendedValue": true, + "explanation": "Use S3 Bucket Policy instead of ACLs for Server Access Logging" + }, + "@aws-cdk/aws-route53-patters:useCertificate": { + "userValue": true, + "recommendedValue": true, + "explanation": "Use the official `Certificate` resource instead of `DnsValidatedCertificate`" + }, + "@aws-cdk/customresources:installLatestAwsSdkDefault": { + "userValue": false, + "recommendedValue": false, + "explanation": "Whether to install the latest SDK by default in AwsCustomResource" + }, + "@aws-cdk/aws-rds:databaseProxyUniqueResourceName": { + "userValue": true, + "recommendedValue": true, + "explanation": "Use unique resource name for Database Proxy" + }, + "@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": { + "userValue": true, + "recommendedValue": true, + "explanation": "Remove CloudWatch alarms from deployment group" + }, + "@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": { + "userValue": true, + "recommendedValue": true, + "explanation": "Include authorizer configuration in the calculation of the API deployment logical ID." + }, + "@aws-cdk/aws-ec2:launchTemplateDefaultUserData": { + "userValue": true, + "recommendedValue": true, + "explanation": "Define user data for a launch template by default when a machine image is provided." + }, + "@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": { + "userValue": true, + "recommendedValue": true, + "explanation": "SecretTargetAttachments uses the ResourcePolicy of the attached Secret." + }, + "@aws-cdk/aws-redshift:columnId": { + "userValue": true, + "recommendedValue": true, + "explanation": "Whether to use an ID to track Redshift column changes" + }, + "@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable AmazonEMRServicePolicy_v2 managed policies" + }, + "@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": { + "userValue": true, + "recommendedValue": true, + "explanation": "Restrict access to the VPC default security group" + }, + "@aws-cdk/aws-apigateway:requestValidatorUniqueId": { + "userValue": true, + "recommendedValue": true, + "explanation": "Generate a unique id for each RequestValidator added to a method" + }, + "@aws-cdk/aws-kms:aliasNameRef": { + "userValue": true, + "recommendedValue": true, + "explanation": "KMS Alias name and keyArn will have implicit reference to KMS Key" + }, + "@aws-cdk/aws-kms:applyImportedAliasPermissionsToPrincipal": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enable grant methods on Aliases imported by name to use kms:ResourceAliases condition" + }, + "@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": { + "userValue": true, + "recommendedValue": true, + "explanation": "Generate a launch template when creating an AutoScalingGroup" + }, + "@aws-cdk/core:includePrefixInUniqueNameGeneration": { + "userValue": true, + "recommendedValue": true, + "explanation": "Include the stack prefix in the stack name generation process" + }, + "@aws-cdk/aws-efs:denyAnonymousAccess": { + "userValue": true, + "recommendedValue": true, + "explanation": "EFS denies anonymous clients accesses" + }, + "@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enables support for Multi-AZ with Standby deployment for opensearch domains" + }, + "@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enables aws-lambda-nodejs.Function to use the latest available NodeJs runtime as the default" + }, + "@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, mount targets will have a stable logicalId that is linked to the associated subnet." + }, + "@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, a scope of InstanceParameterGroup for AuroraClusterInstance with each parameters will change." + }, + "@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, will always use the arn for identifiers for CfnSourceApiAssociation in the GraphqlApi construct rather than id." + }, + "@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, creating an RDS database cluster from a snapshot will only render credentials for snapshot credentials." + }, + "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the CodeCommit source action is using the default branch name 'main'." + }, + "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID." + }, + "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enables Pipeline to set the default value for crossAccountKeys to false." + }, + "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": { + "userValue": true, + "recommendedValue": true, + "explanation": "Enables Pipeline to set the default pipeline type to V2." + }, + "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only." + }, + "@aws-cdk/pipelines:reduceAssetRoleTrustScope": { + "recommendedValue": true, + "explanation": "Remove the root account principal from PipelineAssetsFileRole trust policy", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-eks:nodegroupNameAttribute": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, nodegroupName attribute of the provisioned EKS NodeGroup will not have the cluster name prefix." + }, + "@aws-cdk/aws-eks:useNativeOidcProvider": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, EKS V2 clusters will use the native OIDC provider resource AWS::IAM::OIDCProvider instead of creating the OIDCProvider with a custom resource (iam.OpenIDConnectProvider)." + }, + "@aws-cdk/aws-ec2:ebsDefaultGp3Volume": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the default volume type of the EBS volume will be GP3" + }, + "@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, remove default deployment alarm settings" + }, + "@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": { + "userValue": false, + "recommendedValue": false, + "explanation": "When enabled, the custom resource used for `AwsCustomResource` will configure the `logApiResponseData` property as true by default" + }, + "@aws-cdk/aws-s3:keepNotificationInImportedBucket": { + "userValue": false, + "recommendedValue": false, + "explanation": "When enabled, Adding notifications to a bucket in the current stack will not remove notification from imported stack." + }, + "@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask": { + "recommendedValue": true, + "explanation": "When enabled, use new props for S3 URI field in task definition of state machine for bedrock invoke model.", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/core:explicitStackTags": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, stack tags need to be assigned explicitly on a Stack." + }, + "@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, we will only grant the necessary permissions when users specify cloudwatch log group through logConfiguration" + }, + "@aws-cdk/aws-dynamodb:resourcePolicyPerReplica": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled will allow you to specify a resource policy per replica, and not copy the source table policy to all replicas" + }, + "@aws-cdk/aws-ec2:ec2SumTImeoutEnabled": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, initOptions.timeout and resourceSignalTimeout values will be summed together." + }, + "@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, a Lambda authorizer Permission created when using GraphqlApi will be properly scoped with a SourceArn." + }, + "@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the value of property `instanceResourceId` in construct `DatabaseInstanceReadReplica` will be set to the correct value which is `DbiResourceId` instead of currently `DbInstanceArn`" + }, + "@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, CFN templates added with `cfn-include` will error if the template contains Resource Update or Create policies with CFN Intrinsics that include non-primitive values." + }, + "@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, both `@aws-sdk` and `@smithy` packages will be excluded from the Lambda Node.js 18.x runtime to prevent version mismatches in bundled applications." + }, + "@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the resource of IAM Run Ecs policy generated by SFN EcsRunTask will reference the definition, instead of constructing ARN." + }, + "@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the BastionHost construct will use the latest Amazon Linux 2023 AMI, instead of Amazon Linux 2." + }, + "@aws-cdk/core:aspectStabilization": { + "recommendedValue": true, + "explanation": "When enabled, a stabilization loop will be run when invoking Aspects during synthesis.", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, use a new method for DNS Name of user pool domain target without creating a custom resource." + }, + "@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the default security group ingress rules will allow IPv6 ingress from anywhere" + }, + "@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the default behaviour of OIDC provider will reject unauthorized connections" + }, + "@aws-cdk/core:enableAdditionalMetadataCollection": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, CDK will expand the scope of usage data collected to better inform CDK development and improve communication for security concerns and emerging issues." + }, + "@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": { + "userValue": false, + "recommendedValue": false, + "explanation": "[Deprecated] When enabled, Lambda will create new inline policies with AddToRolePolicy instead of adding to the Default Policy Statement" + }, + "@aws-cdk/aws-s3:setUniqueReplicationRoleName": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, CDK will automatically generate a unique role name that is used for s3 object replication." + }, + "@aws-cdk/pipelines:reduceStageRoleTrustScope": { + "recommendedValue": true, + "explanation": "Remove the root account principal from Stage addActions trust policy", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-events:requireEventBusPolicySid": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, grantPutEventsTo() will use resource policies with Statement IDs for service principals." + }, + "@aws-cdk/core:aspectPrioritiesMutating": { + "userValue": true, + "recommendedValue": true, + "explanation": "When set to true, Aspects added by the construct library on your behalf will be given a priority of MUTATING." + }, + "@aws-cdk/aws-dynamodb:retainTableReplica": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, table replica will be default to the removal policy of source table unless specified otherwise." + }, + "@aws-cdk/cognito:logUserPoolClientSecretValue": { + "recommendedValue": false, + "explanation": "When disabled, the value of the user pool client secret will not be logged in the custom resource lambda function logs." + }, + "@aws-cdk/pipelines:reduceCrossAccountActionRoleTrustScope": { + "recommendedValue": true, + "explanation": "When enabled, scopes down the trust policy for the cross-account action role", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the resultWriterV2 property of DistributedMap will be used insted of resultWriter" + }, + "@aws-cdk/s3-notifications:addS3TrustKeyPolicyForSnsSubscriptions": { + "userValue": true, + "recommendedValue": true, + "explanation": "Add an S3 trust policy to a KMS key resource policy for SNS subscriptions." + }, + "@aws-cdk/aws-ec2:requirePrivateSubnetsForEgressOnlyInternetGateway": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, the EgressOnlyGateway resource is only created if private subnets are defined in the dual-stack VPC." + }, + "@aws-cdk/aws-ec2-alpha:useResourceIdForVpcV2Migration": { + "recommendedValue": false, + "explanation": "When enabled, use resource IDs for VPC V2 migration" + }, + "@aws-cdk/aws-s3:publicAccessBlockedByDefault": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, setting any combination of options for BlockPublicAccess will automatically set true for any options not defined." + }, + "@aws-cdk/aws-lambda:useCdkManagedLogGroup": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, CDK creates and manages loggroup for the lambda function" + }, + "@aws-cdk/aws-elasticloadbalancingv2:networkLoadBalancerWithSecurityGroupByDefault": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, Network Load Balancer will be created with a security group by default." + }, + "@aws-cdk/aws-stepfunctions-tasks:httpInvokeDynamicJsonPathEndpoint": { + "recommendedValue": true, + "explanation": "When enabled, allows using a dynamic apiEndpoint with JSONPath format in HttpInvoke tasks.", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-ecs-patterns:uniqueTargetGroupId": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, ECS patterns will generate unique target group IDs to prevent conflicts during load balancer replacement" + }, + "@aws-cdk/aws-route53-patterns:useDistribution": { + "userValue": true, + "recommendedValue": true, + "explanation": "Use the `Distribution` resource instead of `CloudFrontWebDistribution`" + }, + "@aws-cdk/aws-cloudfront:defaultFunctionRuntimeV2_0": { + "userValue": true, + "recommendedValue": true, + "explanation": "Use cloudfront-js-2.0 as the default runtime for CloudFront Functions" + }, + "@aws-cdk/aws-elasticloadbalancingv2:usePostQuantumTlsPolicy": { + "userValue": true, + "recommendedValue": true, + "explanation": "When enabled, HTTPS/TLS listeners use post-quantum TLS policy by default" + }, + "@aws-cdk/core:automaticL1Traits": { + "recommendedValue": true, + "explanation": "Automatically use the default L1 traits for L1 constructs`", + "unconfiguredBehavesLike": { + "v2": true + } + }, + "@aws-cdk/aws-batch:defaultToAL2023": { + "userValue": true, + "recommendedValue": true, + "explanation": "Use AL2023 as the default imageType for EC2 Batch compute environments instead of the deprecated AL2" + }, + "@aws-cdk/aws-eks:defaultToAL2023": { + "recommendedValue": true, + "explanation": "Use AL2023 as the default AMI type for EKS managed node groups using non-GPU instance types instead of the deprecated AL2" + }, + "@aws-cdk/core:annotationsInValidationReport": { + "userValue": true, + "recommendedValue": true, + "explanation": "Include construct annotations (warnings and errors) in the policy validation report" + }, + "@aws-cdk/core:defaultCrossStackReferences": { + "recommendedValue": "weak", + "explanation": "Controls whether cross-region stack references are strong, weak, or both", + "unconfiguredBehavesLike": { + "v2": "strong" + } + } + } + } + } + }, + "minimumCliVersion": "2.1126.0" +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets.json new file mode 100644 index 0000000000000..5bc73ce45fbc8 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.assets.json @@ -0,0 +1,20 @@ +{ + "version": "54.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "displayName": "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97 Template", + "source": { + "path": "testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region-d8d86b35": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.metadata.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.metadata.json new file mode 100644 index 0000000000000..7e41d50289634 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.metadata.json @@ -0,0 +1,56 @@ +{ + "/test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert": [ + { + "type": "aws:cdk:creationStack", + "data": [ + "new DeployAssert (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk\\integ-tests-alpha\\lib\\assertions\\private\\deploy-assert.js:39:38)", + "new IntegTestCase (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk\\integ-tests-alpha\\lib\\test-case.js:27:24)", + "new IntegTest (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk\\integ-tests-alpha\\lib\\test-case.js:100:33)", + " (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\@aws-cdk-testing\\framework-integ\\test\\aws-rds\\test\\integ.instance-from-snapshot-manage-master-password.js:60:1)", + "...node internals..." + ] + } + ], + "/test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:222:19)", + "DefaultStackSynthesizer.addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:140:9)", + "DefaultStackSynthesizer.synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\default-synthesizer.js:260:18)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467:3)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:524:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "synthesizeTree (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:460:5)", + "synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:88:5)" + ] + } + ], + "/test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + }, + { + "type": "aws:cdk:creationStack", + "data": [ + "addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:230:5)", + "DefaultStackSynthesizer.addBootstrapVersionRule (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\stack-synthesizer.js:140:9)", + "DefaultStackSynthesizer.synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\stack-synthesizers\\default-synthesizer.js:260:18)", + "C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467: (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:467:3)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:524:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "visit (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:521:9)", + "synthesizeTree (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:460:5)", + "synthesize (C:\\Users\\RadhaKrishnan\\Documents\\Github Contribution\\aws-cdk\\packages\\aws-cdk-lib\\core\\lib\\private\\synthesis.js:88:5)" + ] + } + ] +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/testrdsinstancefromsnapshotmanagemasterpasswordDefaultTestDeployAssert3611EE97.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "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." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/tree.json new file mode 100644 index 0000000000000..9bfaf86e3ed30 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.js.snapshot/tree.json @@ -0,0 +1 @@ +{"version":"tree-0.1","tree":{"id":"App","path":"","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ":{"id":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"VPC":{"id":"VPC","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Resource":{"id":"Resource","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/Resource","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::VPC","aws:cdk:cloudformation:logicalId":"VPCB9E5F0B4","aws:cdk:cloudformation:props":{"cidrBlock":"10.0.0.0/16","enableDnsHostnames":true,"enableDnsSupport":true,"instanceTenancy":"default","tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC"}]}}},"PublicSubnet1":{"id":"PublicSubnet1","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Subnet":{"id":"Subnet","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/Subnet","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Subnet","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet1SubnetB4246D30","aws:cdk:cloudformation:props":{"availabilityZone":{"Fn::Select":[0,{"Fn::GetAZs":""}]},"cidrBlock":"10.0.0.0/18","mapPublicIpOnLaunch":true,"tags":[{"key":"aws-cdk:subnet-name","value":"Public"},{"key":"aws-cdk:subnet-type","value":"Public"},{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"Acl":{"id":"Acl","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/Acl","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"RouteTable":{"id":"RouteTable","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/RouteTable","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::RouteTable","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet1RouteTableFEE4B781","aws:cdk:cloudformation:props":{"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"RouteTableAssociation":{"id":"RouteTableAssociation","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/RouteTableAssociation","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::SubnetRouteTableAssociation","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet1RouteTableAssociation0B0896DC","aws:cdk:cloudformation:props":{"routeTableId":{"Ref":"VPCPublicSubnet1RouteTableFEE4B781"},"subnetId":{"Ref":"VPCPublicSubnet1SubnetB4246D30"}}}},"DefaultRoute":{"id":"DefaultRoute","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/DefaultRoute","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Route","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet1DefaultRoute91CEF279","aws:cdk:cloudformation:props":{"destinationCidrBlock":"0.0.0.0/0","gatewayId":{"Ref":"VPCIGWB7E252D3"},"routeTableId":{"Ref":"VPCPublicSubnet1RouteTableFEE4B781"}}}},"EIP":{"id":"EIP","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/EIP","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::EIP","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet1EIP6AD938E8","aws:cdk:cloudformation:props":{"domain":"vpc","tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1"}]}}},"NATGateway":{"id":"NATGateway","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1/NATGateway","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::NatGateway","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet1NATGatewayE0556630","aws:cdk:cloudformation:props":{"allocationId":{"Fn::GetAtt":["VPCPublicSubnet1EIP6AD938E8","AllocationId"]},"subnetId":{"Ref":"VPCPublicSubnet1SubnetB4246D30"},"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet1"}]}}}}},"PublicSubnet2":{"id":"PublicSubnet2","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Subnet":{"id":"Subnet","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/Subnet","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Subnet","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet2Subnet74179F39","aws:cdk:cloudformation:props":{"availabilityZone":{"Fn::Select":[1,{"Fn::GetAZs":""}]},"cidrBlock":"10.0.64.0/18","mapPublicIpOnLaunch":true,"tags":[{"key":"aws-cdk:subnet-name","value":"Public"},{"key":"aws-cdk:subnet-type","value":"Public"},{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"Acl":{"id":"Acl","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/Acl","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"RouteTable":{"id":"RouteTable","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/RouteTable","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::RouteTable","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet2RouteTable6F1A15F1","aws:cdk:cloudformation:props":{"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"RouteTableAssociation":{"id":"RouteTableAssociation","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/RouteTableAssociation","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::SubnetRouteTableAssociation","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet2RouteTableAssociation5A808732","aws:cdk:cloudformation:props":{"routeTableId":{"Ref":"VPCPublicSubnet2RouteTable6F1A15F1"},"subnetId":{"Ref":"VPCPublicSubnet2Subnet74179F39"}}}},"DefaultRoute":{"id":"DefaultRoute","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/DefaultRoute","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Route","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet2DefaultRouteB7481BBA","aws:cdk:cloudformation:props":{"destinationCidrBlock":"0.0.0.0/0","gatewayId":{"Ref":"VPCIGWB7E252D3"},"routeTableId":{"Ref":"VPCPublicSubnet2RouteTable6F1A15F1"}}}},"EIP":{"id":"EIP","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/EIP","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::EIP","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet2EIP4947BC00","aws:cdk:cloudformation:props":{"domain":"vpc","tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2"}]}}},"NATGateway":{"id":"NATGateway","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2/NATGateway","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::NatGateway","aws:cdk:cloudformation:logicalId":"VPCPublicSubnet2NATGateway3C070193","aws:cdk:cloudformation:props":{"allocationId":{"Fn::GetAtt":["VPCPublicSubnet2EIP4947BC00","AllocationId"]},"subnetId":{"Ref":"VPCPublicSubnet2Subnet74179F39"},"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PublicSubnet2"}]}}}}},"PrivateSubnet1":{"id":"PrivateSubnet1","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Subnet":{"id":"Subnet","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/Subnet","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Subnet","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet1Subnet8BCA10E0","aws:cdk:cloudformation:props":{"availabilityZone":{"Fn::Select":[0,{"Fn::GetAZs":""}]},"cidrBlock":"10.0.128.0/18","mapPublicIpOnLaunch":false,"tags":[{"key":"aws-cdk:subnet-name","value":"Private"},{"key":"aws-cdk:subnet-type","value":"Private"},{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"Acl":{"id":"Acl","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/Acl","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"RouteTable":{"id":"RouteTable","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/RouteTable","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::RouteTable","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet1RouteTableBE8A6027","aws:cdk:cloudformation:props":{"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"RouteTableAssociation":{"id":"RouteTableAssociation","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/RouteTableAssociation","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::SubnetRouteTableAssociation","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet1RouteTableAssociation347902D1","aws:cdk:cloudformation:props":{"routeTableId":{"Ref":"VPCPrivateSubnet1RouteTableBE8A6027"},"subnetId":{"Ref":"VPCPrivateSubnet1Subnet8BCA10E0"}}}},"DefaultRoute":{"id":"DefaultRoute","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet1/DefaultRoute","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Route","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet1DefaultRouteAE1D6490","aws:cdk:cloudformation:props":{"destinationCidrBlock":"0.0.0.0/0","natGatewayId":{"Ref":"VPCPublicSubnet1NATGatewayE0556630"},"routeTableId":{"Ref":"VPCPrivateSubnet1RouteTableBE8A6027"}}}}}},"PrivateSubnet2":{"id":"PrivateSubnet2","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Subnet":{"id":"Subnet","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/Subnet","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Subnet","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet2SubnetCFCDAA7A","aws:cdk:cloudformation:props":{"availabilityZone":{"Fn::Select":[1,{"Fn::GetAZs":""}]},"cidrBlock":"10.0.192.0/18","mapPublicIpOnLaunch":false,"tags":[{"key":"aws-cdk:subnet-name","value":"Private"},{"key":"aws-cdk:subnet-type","value":"Private"},{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"Acl":{"id":"Acl","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/Acl","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"RouteTable":{"id":"RouteTable","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/RouteTable","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::RouteTable","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet2RouteTable0A19E10E","aws:cdk:cloudformation:props":{"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}},"RouteTableAssociation":{"id":"RouteTableAssociation","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/RouteTableAssociation","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::SubnetRouteTableAssociation","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet2RouteTableAssociation0C73D413","aws:cdk:cloudformation:props":{"routeTableId":{"Ref":"VPCPrivateSubnet2RouteTable0A19E10E"},"subnetId":{"Ref":"VPCPrivateSubnet2SubnetCFCDAA7A"}}}},"DefaultRoute":{"id":"DefaultRoute","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/PrivateSubnet2/DefaultRoute","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::Route","aws:cdk:cloudformation:logicalId":"VPCPrivateSubnet2DefaultRouteF4F5CFD2","aws:cdk:cloudformation:props":{"destinationCidrBlock":"0.0.0.0/0","natGatewayId":{"Ref":"VPCPublicSubnet2NATGateway3C070193"},"routeTableId":{"Ref":"VPCPrivateSubnet2RouteTable0A19E10E"}}}}}},"IGW":{"id":"IGW","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/IGW","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::InternetGateway","aws:cdk:cloudformation:logicalId":"VPCIGWB7E252D3","aws:cdk:cloudformation:props":{"tags":[{"key":"Name","value":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC"}]}}},"VPCGW":{"id":"VPCGW","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/VPC/VPCGW","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::VPCGatewayAttachment","aws:cdk:cloudformation:logicalId":"VPCVPCGW99B986DC","aws:cdk:cloudformation:props":{"internetGatewayId":{"Ref":"VPCIGWB7E252D3"},"vpcId":{"Ref":"VPCB9E5F0B4"}}}}}},"OracleFromSnapshot":{"id":"OracleFromSnapshot","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"SubnetGroup":{"id":"SubnetGroup","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SubnetGroup","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Default":{"id":"Default","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SubnetGroup/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::RDS::DBSubnetGroup","aws:cdk:cloudformation:logicalId":"OracleFromSnapshotSubnetGroup42A93CC1","aws:cdk:cloudformation:props":{"dbSubnetGroupDescription":"Subnet group for OracleFromSnapshot database","subnetIds":[{"Ref":"VPCPrivateSubnet1Subnet8BCA10E0"},{"Ref":"VPCPrivateSubnet2SubnetCFCDAA7A"}]}}}}},"SecurityGroup":{"id":"SecurityGroup","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SecurityGroup","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Resource":{"id":"Resource","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/SecurityGroup/Resource","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::EC2::SecurityGroup","aws:cdk:cloudformation:logicalId":"OracleFromSnapshotSecurityGroup058D1E60","aws:cdk:cloudformation:props":{"groupDescription":"Security group for OracleFromSnapshot database","securityGroupEgress":[{"cidrIp":"0.0.0.0/0","description":"Allow all outbound traffic by default","ipProtocol":"-1"}],"vpcId":{"Ref":"VPCB9E5F0B4"}}}}}},"Resource":{"id":"Resource","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/Resource","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"attributes":{"aws:cdk:cloudformation:type":"AWS::RDS::DBInstance","aws:cdk:cloudformation:logicalId":"OracleFromSnapshot63004C4E","aws:cdk:cloudformation:props":{"allocatedStorage":"100","copyTagsToSnapshot":true,"dbInstanceClass":"db.t3.medium","dbSnapshotIdentifier":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ","dbSubnetGroupName":{"Ref":"OracleFromSnapshotSubnetGroup42A93CC1"},"engine":"oracle-se2","engineVersion":"19.0.0.0.ru-2020-04.rur-2020-04.r1","manageMasterUserPassword":true,"storageType":"gp2","vpcSecurityGroups":[{"Fn::GetAtt":["OracleFromSnapshotSecurityGroup058D1E60","GroupId"]}]}}},"ManagedSecret":{"id":"ManagedSecret","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/OracleFromSnapshot/ManagedSecret","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}}}},"BootstrapVersion":{"id":"BootstrapVersion","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/BootstrapVersion","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"aws-cdk-rds-instance-from-snapshot-manage-master-password-integ/CheckBootstrapVersion","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}}}},"test-rds-instance-from-snapshot-manage-master-password":{"id":"test-rds-instance-from-snapshot-manage-master-password","path":"test-rds-instance-from-snapshot-manage-master-password","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"DefaultTest":{"id":"DefaultTest","path":"test-rds-instance-from-snapshot-manage-master-password/DefaultTest","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"Default":{"id":"Default","path":"test-rds-instance-from-snapshot-manage-master-password/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"DeployAssert":{"id":"DeployAssert","path":"test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"},"children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"test-rds-instance-from-snapshot-manage-master-password/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}}}}}}}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.6.0"}}}}} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.ts new file mode 100644 index 0000000000000..9d2ba95d99294 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-snapshot-manage-master-password.ts @@ -0,0 +1,34 @@ +import * as ec2 from 'aws-cdk-lib/aws-ec2'; +import * as cdk from 'aws-cdk-lib'; +import { DatabaseInstanceFromSnapshot, DatabaseInstanceEngine, OracleEngineVersion } from 'aws-cdk-lib/aws-rds'; +import { IntegTestBaseStack } from './integ-test-base-stack'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; + +class TestStack extends IntegTestBaseStack { + public readonly instanceId: string; + + constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { + super(scope, id, props); + + const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false }); + + const instance = new DatabaseInstanceFromSnapshot(this, 'OracleFromSnapshot', { + snapshotIdentifier: 'aws-cdk-rds-instance-from-snapshot-manage-master-password-integ', + engine: DatabaseInstanceEngine.oracleSe2({ + version: OracleEngineVersion.VER_19_0_0_0_2020_04_R1, + }), + instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM), + vpc, + manageMasterUserPassword: true, + }); + + this.instanceId = instance.instanceIdentifier; + } +} + +const app = new cdk.App(); +const stack = new TestStack(app, 'aws-cdk-rds-instance-from-snapshot-manage-master-password-integ'); + +new IntegTest(app, 'test-rds-instance-from-snapshot-manage-master-password', { + testCases: [stack], +}); diff --git a/packages/aws-cdk-lib/aws-rds/lib/instance.ts b/packages/aws-cdk-lib/aws-rds/lib/instance.ts index d9fe16c9afedf..cc54f9dd020c8 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/instance.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/instance.ts @@ -7,7 +7,7 @@ import type { IInstanceEngine } from './instance-engine'; import type { IOptionGroup } from './option-group'; import type { IParameterGroup } from './parameter-group'; import { ParameterGroup } from './parameter-group'; -import { applyDefaultRotationOptions, defaultDeletionProtection, engineDescription, renderCredentials, setupS3ImportExport, helperRemovalPolicy, renderUnless, validateManagedPasswordCredentials } from './private/util'; +import { applyDefaultRotationOptions, defaultDeletionProtection, engineDescription, renderCredentials, setupS3ImportExport, helperRemovalPolicy, renderUnless, validateManagedPasswordCredentials, validateManagedPasswordSnapshotCredentials } from './private/util'; import type { Credentials, EngineLifecycleSupport, RotationMultiUserOptions, RotationSingleUserOptions, SnapshotCredentials } from './props'; import { PerformanceInsightRetention } from './props'; import type { DatabaseProxyOptions } from './proxy'; @@ -1481,6 +1481,17 @@ export interface DatabaseInstanceFromSnapshotProps extends DatabaseInstanceSourc * @default - The existing username and password from the snapshot will be used. */ readonly credentials?: SnapshotCredentials; + + /** + * Whether to use RDS native integration with AWS Secrets Manager for master user password management. + * + * When enabled, RDS generates and manages the master user password in Secrets Manager. + * This allows migration to RDS-managed passwords when restoring from a snapshot. + * + * @default false + * @see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html + */ + readonly manageMasterUserPassword?: boolean; } /** @@ -1520,27 +1531,55 @@ export class DatabaseInstanceFromSnapshot extends DatabaseInstanceSource impleme throw new ValidationError(lit`CannotSpecifyBoth`, 'You cannot specify both `snapshotIdentifier` and `clusterSnapshotIdentifier`', this); } - let credentials = props.credentials; - let secret = credentials?.secret; - if (!secret && credentials?.generatePassword) { - if (!credentials.username) { - throw new ValidationError(lit`MustBeSpecifiedTrue`, '`credentials` `username` must be specified when `generatePassword` is set to true', this); - } + // manageMasterUserPassword is only supported for Oracle when restoring from a snapshot + // (RestoreDBInstanceFromDBSnapshot API limitation) + if (props.manageMasterUserPassword && !Token.isUnresolved(props.engine.engineType) && !props.engine.engineType.startsWith('oracle-')) { + throw new ValidationError( + lit`ManagedPasswordFromSnapshotOracleOnly`, + '`manageMasterUserPassword` is only supported for Oracle DB instances when restoring from a snapshot', + this, + ); + } - secret = new DatabaseSecret(this, 'Secret', { - username: credentials.username, - encryptionKey: credentials.encryptionKey, - excludeCharacters: credentials.excludeCharacters, - replaceOnPasswordCriteriaChanges: credentials.replaceOnPasswordCriteriaChanges, - replicaRegions: credentials.replicaRegions, - }); + // Validate manageMasterUserPassword conflicts with unsupported credential properties + if (props.manageMasterUserPassword) { + validateManagedPasswordSnapshotCredentials(this, props.credentials); + } + + this.manageMasterUserPassword = props.manageMasterUserPassword; + + let secret: secretsmanager.ISecret | undefined; + let masterUserPassword: string | undefined; + + if (!props.manageMasterUserPassword) { + const credentials = props.credentials; + let credSecret = credentials?.secret; + if (!credSecret && credentials?.generatePassword) { + if (!credentials.username) { + throw new ValidationError(lit`MustBeSpecifiedTrue`, '`credentials` `username` must be specified when `generatePassword` is set to true', this); + } + + credSecret = new DatabaseSecret(this, 'Secret', { + username: credentials.username, + encryptionKey: credentials.encryptionKey, + excludeCharacters: credentials.excludeCharacters, + replaceOnPasswordCriteriaChanges: credentials.replaceOnPasswordCriteriaChanges, + replicaRegions: credentials.replicaRegions, + }); + } + secret = credSecret; + masterUserPassword = credSecret?.secretValueFromJson('password')?.unsafeUnwrap() ?? credentials?.password?.unsafeUnwrap(); // Safe usage } const instance = new CfnDBInstance(this, 'Resource', { ...this.sourceCfnProps, dbSnapshotIdentifier: props.snapshotIdentifier, dbClusterSnapshotIdentifier: props.clusterSnapshotIdentifier, - masterUserPassword: secret?.secretValueFromJson('password')?.unsafeUnwrap() ?? credentials?.password?.unsafeUnwrap(), // Safe usage + masterUserPassword, + manageMasterUserPassword: props.manageMasterUserPassword || undefined, + masterUserSecret: props.manageMasterUserPassword && props.credentials?.encryptionKey + ? { kmsKeyId: props.credentials.encryptionKey.keyArn } + : undefined, }); this._resource = instance; @@ -1554,7 +1593,12 @@ export class DatabaseInstanceFromSnapshot extends DatabaseInstanceSource impleme instance.applyRemovalPolicy(props.removalPolicy ?? RemovalPolicy.SNAPSHOT); - if (secret) { + if (props.manageMasterUserPassword) { + this.secret = secretsmanager.Secret.fromSecretAttributes(this, 'ManagedSecret', { + secretCompleteArn: instance.attrMasterUserSecretSecretArn, + encryptionKey: props.credentials?.encryptionKey, + }); + } else if (secret) { this.secret = secret.attach(this); } diff --git a/packages/aws-cdk-lib/aws-rds/test/instance.test.ts b/packages/aws-cdk-lib/aws-rds/test/instance.test.ts index cfc9081919a06..124855f28c93e 100644 --- a/packages/aws-cdk-lib/aws-rds/test/instance.test.ts +++ b/packages/aws-cdk-lib/aws-rds/test/instance.test.ts @@ -627,6 +627,101 @@ describe('instance', () => { vpc, })).toThrow(/You must specify `snapshotIdentifier` or `clusterSnapshotIdentifier`/); }); + + describe('manageMasterUserPassword', () => { + test('Oracle instance from snapshot with manageMasterUserPassword', () => { + // WHEN + new rds.DatabaseInstanceFromSnapshot(stack, 'Instance', { + snapshotIdentifier: 'my-snapshot', + engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), + vpc, + manageMasterUserPassword: true, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::RDS::DBInstance', { + DBSnapshotIdentifier: 'my-snapshot', + ManageMasterUserPassword: true, + MasterUserPassword: Match.absent(), + MasterUserSecret: Match.absent(), + }); + + Template.fromStack(stack).resourceCountIs('AWS::SecretsManager::Secret', 0); + }); + + test('Oracle instance from snapshot with manageMasterUserPassword and KMS encryption key', () => { + // GIVEN + const kmsKey = new kms.Key(stack, 'Key'); + + // WHEN + new rds.DatabaseInstanceFromSnapshot(stack, 'Instance', { + snapshotIdentifier: 'my-snapshot', + engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), + vpc, + manageMasterUserPassword: true, + // Use a plain object with generatePassword: false to only specify encryptionKey + credentials: { generatePassword: false, encryptionKey: kmsKey }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::RDS::DBInstance', { + DBSnapshotIdentifier: 'my-snapshot', + ManageMasterUserPassword: true, + MasterUserSecret: { + KmsKeyId: stack.resolve(kmsKey.keyArn), + }, + MasterUserPassword: Match.absent(), + }); + }); + + test('manageMasterUserPassword exposes secret via ManagedSecret', () => { + // WHEN + const instance = new rds.DatabaseInstanceFromSnapshot(stack, 'Instance', { + snapshotIdentifier: 'my-snapshot', + engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), + vpc, + manageMasterUserPassword: true, + }); + + // THEN + expect(instance.secret).toBeDefined(); + }); + + test('throws when manageMasterUserPassword is used with non-Oracle engine', () => { + // THEN + expect(() => new rds.DatabaseInstanceFromSnapshot(stack, 'Instance', { + snapshotIdentifier: 'my-snapshot', + engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_19 }), + vpc, + manageMasterUserPassword: true, + })).toThrow(/`manageMasterUserPassword` is only supported for Oracle DB instances when restoring from a snapshot/); + }); + + test('throws when manageMasterUserPassword is used with unsupported credential properties', () => { + // THEN + expect(() => new rds.DatabaseInstanceFromSnapshot(stack, 'Instance', { + snapshotIdentifier: 'my-snapshot', + engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), + vpc, + manageMasterUserPassword: true, + credentials: rds.SnapshotCredentials.fromPassword(cdk.SecretValue.unsafePlainText('password')), + })).toThrow(/When manageMasterUserPassword is enabled, only 'username' and 'encryptionKey' are allowed in snapshotCredentials/); + }); + + test('addRotationSingleUser throws when manageMasterUserPassword is enabled', () => { + // GIVEN + const instance = new rds.DatabaseInstanceFromSnapshot(stack, 'Instance', { + snapshotIdentifier: 'my-snapshot', + engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), + vpc, + manageMasterUserPassword: true, + }); + + // THEN + expect(() => instance.addRotationSingleUser()) + .toThrow(/Cannot add rotation when `manageMasterUserPassword` is enabled/); + }); + }); }); test('create a read replica in the same region - with the subnet group name', () => {