|
19 | 19 | "VPCPublicSubnet1SubnetB4246D30": {
|
20 | 20 | "Type": "AWS::EC2::Subnet",
|
21 | 21 | "Properties": {
|
22 |
| - "VpcId": { |
23 |
| - "Ref": "VPCB9E5F0B4" |
24 |
| - }, |
25 | 22 | "AvailabilityZone": {
|
26 | 23 | "Fn::Select": [
|
27 | 24 | 0,
|
|
45 | 42 | "Key": "Name",
|
46 | 43 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PublicSubnet1"
|
47 | 44 | }
|
48 |
| - ] |
| 45 | + ], |
| 46 | + "VpcId": { |
| 47 | + "Ref": "VPCB9E5F0B4" |
| 48 | + } |
49 | 49 | }
|
50 | 50 | },
|
51 | 51 | "VPCPublicSubnet1RouteTableFEE4B781": {
|
52 | 52 | "Type": "AWS::EC2::RouteTable",
|
53 | 53 | "Properties": {
|
54 |
| - "VpcId": { |
55 |
| - "Ref": "VPCB9E5F0B4" |
56 |
| - }, |
57 | 54 | "Tags": [
|
58 | 55 | {
|
59 | 56 | "Key": "Name",
|
60 | 57 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PublicSubnet1"
|
61 | 58 | }
|
62 |
| - ] |
| 59 | + ], |
| 60 | + "VpcId": { |
| 61 | + "Ref": "VPCB9E5F0B4" |
| 62 | + } |
63 | 63 | }
|
64 | 64 | },
|
65 | 65 | "VPCPublicSubnet1RouteTableAssociation0B0896DC": {
|
|
76 | 76 | "VPCPublicSubnet1DefaultRoute91CEF279": {
|
77 | 77 | "Type": "AWS::EC2::Route",
|
78 | 78 | "Properties": {
|
79 |
| - "RouteTableId": { |
80 |
| - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" |
81 |
| - }, |
82 | 79 | "DestinationCidrBlock": "0.0.0.0/0",
|
83 | 80 | "GatewayId": {
|
84 | 81 | "Ref": "VPCIGWB7E252D3"
|
| 82 | + }, |
| 83 | + "RouteTableId": { |
| 84 | + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" |
85 | 85 | }
|
86 | 86 | },
|
87 | 87 | "DependsOn": [
|
|
103 | 103 | "VPCPublicSubnet1NATGatewayE0556630": {
|
104 | 104 | "Type": "AWS::EC2::NatGateway",
|
105 | 105 | "Properties": {
|
106 |
| - "SubnetId": { |
107 |
| - "Ref": "VPCPublicSubnet1SubnetB4246D30" |
108 |
| - }, |
109 | 106 | "AllocationId": {
|
110 | 107 | "Fn::GetAtt": [
|
111 | 108 | "VPCPublicSubnet1EIP6AD938E8",
|
112 | 109 | "AllocationId"
|
113 | 110 | ]
|
114 | 111 | },
|
| 112 | + "SubnetId": { |
| 113 | + "Ref": "VPCPublicSubnet1SubnetB4246D30" |
| 114 | + }, |
115 | 115 | "Tags": [
|
116 | 116 | {
|
117 | 117 | "Key": "Name",
|
|
127 | 127 | "VPCPublicSubnet2Subnet74179F39": {
|
128 | 128 | "Type": "AWS::EC2::Subnet",
|
129 | 129 | "Properties": {
|
130 |
| - "VpcId": { |
131 |
| - "Ref": "VPCB9E5F0B4" |
132 |
| - }, |
133 | 130 | "AvailabilityZone": {
|
134 | 131 | "Fn::Select": [
|
135 | 132 | 1,
|
|
153 | 150 | "Key": "Name",
|
154 | 151 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PublicSubnet2"
|
155 | 152 | }
|
156 |
| - ] |
| 153 | + ], |
| 154 | + "VpcId": { |
| 155 | + "Ref": "VPCB9E5F0B4" |
| 156 | + } |
157 | 157 | }
|
158 | 158 | },
|
159 | 159 | "VPCPublicSubnet2RouteTable6F1A15F1": {
|
160 | 160 | "Type": "AWS::EC2::RouteTable",
|
161 | 161 | "Properties": {
|
162 |
| - "VpcId": { |
163 |
| - "Ref": "VPCB9E5F0B4" |
164 |
| - }, |
165 | 162 | "Tags": [
|
166 | 163 | {
|
167 | 164 | "Key": "Name",
|
168 | 165 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PublicSubnet2"
|
169 | 166 | }
|
170 |
| - ] |
| 167 | + ], |
| 168 | + "VpcId": { |
| 169 | + "Ref": "VPCB9E5F0B4" |
| 170 | + } |
171 | 171 | }
|
172 | 172 | },
|
173 | 173 | "VPCPublicSubnet2RouteTableAssociation5A808732": {
|
|
184 | 184 | "VPCPublicSubnet2DefaultRouteB7481BBA": {
|
185 | 185 | "Type": "AWS::EC2::Route",
|
186 | 186 | "Properties": {
|
187 |
| - "RouteTableId": { |
188 |
| - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" |
189 |
| - }, |
190 | 187 | "DestinationCidrBlock": "0.0.0.0/0",
|
191 | 188 | "GatewayId": {
|
192 | 189 | "Ref": "VPCIGWB7E252D3"
|
| 190 | + }, |
| 191 | + "RouteTableId": { |
| 192 | + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" |
193 | 193 | }
|
194 | 194 | },
|
195 | 195 | "DependsOn": [
|
|
211 | 211 | "VPCPublicSubnet2NATGateway3C070193": {
|
212 | 212 | "Type": "AWS::EC2::NatGateway",
|
213 | 213 | "Properties": {
|
214 |
| - "SubnetId": { |
215 |
| - "Ref": "VPCPublicSubnet2Subnet74179F39" |
216 |
| - }, |
217 | 214 | "AllocationId": {
|
218 | 215 | "Fn::GetAtt": [
|
219 | 216 | "VPCPublicSubnet2EIP4947BC00",
|
220 | 217 | "AllocationId"
|
221 | 218 | ]
|
222 | 219 | },
|
| 220 | + "SubnetId": { |
| 221 | + "Ref": "VPCPublicSubnet2Subnet74179F39" |
| 222 | + }, |
223 | 223 | "Tags": [
|
224 | 224 | {
|
225 | 225 | "Key": "Name",
|
|
235 | 235 | "VPCPrivateSubnet1Subnet8BCA10E0": {
|
236 | 236 | "Type": "AWS::EC2::Subnet",
|
237 | 237 | "Properties": {
|
238 |
| - "VpcId": { |
239 |
| - "Ref": "VPCB9E5F0B4" |
240 |
| - }, |
241 | 238 | "AvailabilityZone": {
|
242 | 239 | "Fn::Select": [
|
243 | 240 | 0,
|
|
261 | 258 | "Key": "Name",
|
262 | 259 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PrivateSubnet1"
|
263 | 260 | }
|
264 |
| - ] |
| 261 | + ], |
| 262 | + "VpcId": { |
| 263 | + "Ref": "VPCB9E5F0B4" |
| 264 | + } |
265 | 265 | }
|
266 | 266 | },
|
267 | 267 | "VPCPrivateSubnet1RouteTableBE8A6027": {
|
268 | 268 | "Type": "AWS::EC2::RouteTable",
|
269 | 269 | "Properties": {
|
270 |
| - "VpcId": { |
271 |
| - "Ref": "VPCB9E5F0B4" |
272 |
| - }, |
273 | 270 | "Tags": [
|
274 | 271 | {
|
275 | 272 | "Key": "Name",
|
276 | 273 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PrivateSubnet1"
|
277 | 274 | }
|
278 |
| - ] |
| 275 | + ], |
| 276 | + "VpcId": { |
| 277 | + "Ref": "VPCB9E5F0B4" |
| 278 | + } |
279 | 279 | }
|
280 | 280 | },
|
281 | 281 | "VPCPrivateSubnet1RouteTableAssociation347902D1": {
|
|
292 | 292 | "VPCPrivateSubnet1DefaultRouteAE1D6490": {
|
293 | 293 | "Type": "AWS::EC2::Route",
|
294 | 294 | "Properties": {
|
295 |
| - "RouteTableId": { |
296 |
| - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" |
297 |
| - }, |
298 | 295 | "DestinationCidrBlock": "0.0.0.0/0",
|
299 | 296 | "NatGatewayId": {
|
300 | 297 | "Ref": "VPCPublicSubnet1NATGatewayE0556630"
|
| 298 | + }, |
| 299 | + "RouteTableId": { |
| 300 | + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" |
301 | 301 | }
|
302 | 302 | }
|
303 | 303 | },
|
304 | 304 | "VPCPrivateSubnet2SubnetCFCDAA7A": {
|
305 | 305 | "Type": "AWS::EC2::Subnet",
|
306 | 306 | "Properties": {
|
307 |
| - "VpcId": { |
308 |
| - "Ref": "VPCB9E5F0B4" |
309 |
| - }, |
310 | 307 | "AvailabilityZone": {
|
311 | 308 | "Fn::Select": [
|
312 | 309 | 1,
|
|
330 | 327 | "Key": "Name",
|
331 | 328 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PrivateSubnet2"
|
332 | 329 | }
|
333 |
| - ] |
| 330 | + ], |
| 331 | + "VpcId": { |
| 332 | + "Ref": "VPCB9E5F0B4" |
| 333 | + } |
334 | 334 | }
|
335 | 335 | },
|
336 | 336 | "VPCPrivateSubnet2RouteTable0A19E10E": {
|
337 | 337 | "Type": "AWS::EC2::RouteTable",
|
338 | 338 | "Properties": {
|
339 |
| - "VpcId": { |
340 |
| - "Ref": "VPCB9E5F0B4" |
341 |
| - }, |
342 | 339 | "Tags": [
|
343 | 340 | {
|
344 | 341 | "Key": "Name",
|
345 | 342 | "Value": "aws-cdk-docdb-cluster-rotation/VPC/PrivateSubnet2"
|
346 | 343 | }
|
347 |
| - ] |
| 344 | + ], |
| 345 | + "VpcId": { |
| 346 | + "Ref": "VPCB9E5F0B4" |
| 347 | + } |
348 | 348 | }
|
349 | 349 | },
|
350 | 350 | "VPCPrivateSubnet2RouteTableAssociation0C73D413": {
|
|
361 | 361 | "VPCPrivateSubnet2DefaultRouteF4F5CFD2": {
|
362 | 362 | "Type": "AWS::EC2::Route",
|
363 | 363 | "Properties": {
|
364 |
| - "RouteTableId": { |
365 |
| - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" |
366 |
| - }, |
367 | 364 | "DestinationCidrBlock": "0.0.0.0/0",
|
368 | 365 | "NatGatewayId": {
|
369 | 366 | "Ref": "VPCPublicSubnet2NATGateway3C070193"
|
| 367 | + }, |
| 368 | + "RouteTableId": { |
| 369 | + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" |
370 | 370 | }
|
371 | 371 | }
|
372 | 372 | },
|
|
384 | 384 | "VPCVPCGW99B986DC": {
|
385 | 385 | "Type": "AWS::EC2::VPCGatewayAttachment",
|
386 | 386 | "Properties": {
|
387 |
| - "VpcId": { |
388 |
| - "Ref": "VPCB9E5F0B4" |
389 |
| - }, |
390 | 387 | "InternetGatewayId": {
|
391 | 388 | "Ref": "VPCIGWB7E252D3"
|
| 389 | + }, |
| 390 | + "VpcId": { |
| 391 | + "Ref": "VPCB9E5F0B4" |
392 | 392 | }
|
393 | 393 | }
|
394 | 394 | },
|
|
427 | 427 | "DatabaseSecurityGroupfromawscdkdocdbclusterrotationDatabaseRotationSingleUserSecurityGroupBF39D224IndirectPortE14845D7": {
|
428 | 428 | "Type": "AWS::EC2::SecurityGroupIngress",
|
429 | 429 | "Properties": {
|
430 |
| - "IpProtocol": "tcp", |
431 | 430 | "Description": "from awscdkdocdbclusterrotationDatabaseRotationSingleUserSecurityGroupBF39D224:{IndirectPort}",
|
432 | 431 | "FromPort": {
|
433 | 432 | "Fn::GetAtt": [
|
|
441 | 440 | "GroupId"
|
442 | 441 | ]
|
443 | 442 | },
|
| 443 | + "IpProtocol": "tcp", |
444 | 444 | "SourceSecurityGroupId": {
|
445 | 445 | "Fn::GetAtt": [
|
446 | 446 | "DatabaseRotationSingleUserSecurityGroupAC6E0E73",
|
|
494 | 494 | "DatabaseSecretAttachmentRotationScheduleA4E9F034": {
|
495 | 495 | "Type": "AWS::SecretsManager::RotationSchedule",
|
496 | 496 | "Properties": {
|
497 |
| - "SecretId": { |
498 |
| - "Ref": "DatabaseSecretAttachmentE5D1B020" |
499 |
| - }, |
500 | 497 | "RotationLambdaARN": {
|
501 | 498 | "Fn::GetAtt": [
|
502 | 499 | "DatabaseRotationSingleUser65F55654",
|
|
505 | 502 | },
|
506 | 503 | "RotationRules": {
|
507 | 504 | "AutomaticallyAfterDays": 30
|
| 505 | + }, |
| 506 | + "SecretId": { |
| 507 | + "Ref": "DatabaseSecretAttachmentE5D1B020" |
508 | 508 | }
|
509 | 509 | }
|
510 | 510 | },
|
|
550 | 550 | "DBSubnetGroupName": {
|
551 | 551 | "Ref": "DatabaseSubnets56F17B9A"
|
552 | 552 | },
|
553 |
| - "MasterUsername": { |
| 553 | + "MasterUserPassword": { |
554 | 554 | "Fn::Join": [
|
555 | 555 | "",
|
556 | 556 | [
|
557 | 557 | "{{resolve:secretsmanager:",
|
558 | 558 | {
|
559 | 559 | "Ref": "DatabaseSecret3B817195"
|
560 | 560 | },
|
561 |
| - ":SecretString:username::}}" |
| 561 | + ":SecretString:password::}}" |
562 | 562 | ]
|
563 | 563 | ]
|
564 | 564 | },
|
565 |
| - "MasterUserPassword": { |
| 565 | + "MasterUsername": { |
566 | 566 | "Fn::Join": [
|
567 | 567 | "",
|
568 | 568 | [
|
569 | 569 | "{{resolve:secretsmanager:",
|
570 | 570 | {
|
571 | 571 | "Ref": "DatabaseSecret3B817195"
|
572 | 572 | },
|
573 |
| - ":SecretString:password::}}" |
| 573 | + ":SecretString:username::}}" |
574 | 574 | ]
|
575 | 575 | ]
|
576 | 576 | },
|
|
691 | 691 | "DatabaseRotationSingleUserSARMapping9AEB3E55": {
|
692 | 692 | "aws": {
|
693 | 693 | "applicationId": "arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerMongoDBRotationSingleUser",
|
694 |
| - "semanticVersion": "1.1.225" |
| 694 | + "semanticVersion": "1.1.367" |
695 | 695 | },
|
696 | 696 | "aws-cn": {
|
697 | 697 | "applicationId": "arn:aws-cn:serverlessrepo:cn-north-1:193023089310:applications/SecretsManagerMongoDBRotationSingleUser",
|
|
0 commit comments