|
18 | 18 | "VPCPublicSubnet1SubnetB4246D30": {
|
19 | 19 | "Type": "AWS::EC2::Subnet",
|
20 | 20 | "Properties": {
|
21 |
| - "VpcId": { |
22 |
| - "Ref": "VPCB9E5F0B4" |
23 |
| - }, |
24 | 21 | "AvailabilityZone": {
|
25 | 22 | "Fn::Select": [
|
26 | 23 | 0,
|
|
44 | 41 | "Key": "Name",
|
45 | 42 | "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet1"
|
46 | 43 | }
|
47 |
| - ] |
| 44 | + ], |
| 45 | + "VpcId": { |
| 46 | + "Ref": "VPCB9E5F0B4" |
| 47 | + } |
48 | 48 | }
|
49 | 49 | },
|
50 | 50 | "VPCPublicSubnet1RouteTableFEE4B781": {
|
51 | 51 | "Type": "AWS::EC2::RouteTable",
|
52 | 52 | "Properties": {
|
53 |
| - "VpcId": { |
54 |
| - "Ref": "VPCB9E5F0B4" |
55 |
| - }, |
56 | 53 | "Tags": [
|
57 | 54 | {
|
58 | 55 | "Key": "Name",
|
59 | 56 | "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet1"
|
60 | 57 | }
|
61 |
| - ] |
| 58 | + ], |
| 59 | + "VpcId": { |
| 60 | + "Ref": "VPCB9E5F0B4" |
| 61 | + } |
62 | 62 | }
|
63 | 63 | },
|
64 | 64 | "VPCPublicSubnet1RouteTableAssociation0B0896DC": {
|
|
75 | 75 | "VPCPublicSubnet1DefaultRoute91CEF279": {
|
76 | 76 | "Type": "AWS::EC2::Route",
|
77 | 77 | "Properties": {
|
78 |
| - "RouteTableId": { |
79 |
| - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" |
80 |
| - }, |
81 | 78 | "DestinationCidrBlock": "0.0.0.0/0",
|
82 | 79 | "GatewayId": {
|
83 | 80 | "Ref": "VPCIGWB7E252D3"
|
| 81 | + }, |
| 82 | + "RouteTableId": { |
| 83 | + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" |
84 | 84 | }
|
85 | 85 | },
|
86 | 86 | "DependsOn": [
|
|
102 | 102 | "VPCPublicSubnet1NATGatewayE0556630": {
|
103 | 103 | "Type": "AWS::EC2::NatGateway",
|
104 | 104 | "Properties": {
|
105 |
| - "SubnetId": { |
106 |
| - "Ref": "VPCPublicSubnet1SubnetB4246D30" |
107 |
| - }, |
108 | 105 | "AllocationId": {
|
109 | 106 | "Fn::GetAtt": [
|
110 | 107 | "VPCPublicSubnet1EIP6AD938E8",
|
111 | 108 | "AllocationId"
|
112 | 109 | ]
|
113 | 110 | },
|
| 111 | + "SubnetId": { |
| 112 | + "Ref": "VPCPublicSubnet1SubnetB4246D30" |
| 113 | + }, |
114 | 114 | "Tags": [
|
115 | 115 | {
|
116 | 116 | "Key": "Name",
|
|
126 | 126 | "VPCPublicSubnet2Subnet74179F39": {
|
127 | 127 | "Type": "AWS::EC2::Subnet",
|
128 | 128 | "Properties": {
|
129 |
| - "VpcId": { |
130 |
| - "Ref": "VPCB9E5F0B4" |
131 |
| - }, |
132 | 129 | "AvailabilityZone": {
|
133 | 130 | "Fn::Select": [
|
134 | 131 | 1,
|
|
152 | 149 | "Key": "Name",
|
153 | 150 | "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet2"
|
154 | 151 | }
|
155 |
| - ] |
| 152 | + ], |
| 153 | + "VpcId": { |
| 154 | + "Ref": "VPCB9E5F0B4" |
| 155 | + } |
156 | 156 | }
|
157 | 157 | },
|
158 | 158 | "VPCPublicSubnet2RouteTable6F1A15F1": {
|
159 | 159 | "Type": "AWS::EC2::RouteTable",
|
160 | 160 | "Properties": {
|
161 |
| - "VpcId": { |
162 |
| - "Ref": "VPCB9E5F0B4" |
163 |
| - }, |
164 | 161 | "Tags": [
|
165 | 162 | {
|
166 | 163 | "Key": "Name",
|
167 | 164 | "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet2"
|
168 | 165 | }
|
169 |
| - ] |
| 166 | + ], |
| 167 | + "VpcId": { |
| 168 | + "Ref": "VPCB9E5F0B4" |
| 169 | + } |
170 | 170 | }
|
171 | 171 | },
|
172 | 172 | "VPCPublicSubnet2RouteTableAssociation5A808732": {
|
|
183 | 183 | "VPCPublicSubnet2DefaultRouteB7481BBA": {
|
184 | 184 | "Type": "AWS::EC2::Route",
|
185 | 185 | "Properties": {
|
186 |
| - "RouteTableId": { |
187 |
| - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" |
188 |
| - }, |
189 | 186 | "DestinationCidrBlock": "0.0.0.0/0",
|
190 | 187 | "GatewayId": {
|
191 | 188 | "Ref": "VPCIGWB7E252D3"
|
| 189 | + }, |
| 190 | + "RouteTableId": { |
| 191 | + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" |
192 | 192 | }
|
193 | 193 | },
|
194 | 194 | "DependsOn": [
|
|
210 | 210 | "VPCPublicSubnet2NATGateway3C070193": {
|
211 | 211 | "Type": "AWS::EC2::NatGateway",
|
212 | 212 | "Properties": {
|
213 |
| - "SubnetId": { |
214 |
| - "Ref": "VPCPublicSubnet2Subnet74179F39" |
215 |
| - }, |
216 | 213 | "AllocationId": {
|
217 | 214 | "Fn::GetAtt": [
|
218 | 215 | "VPCPublicSubnet2EIP4947BC00",
|
219 | 216 | "AllocationId"
|
220 | 217 | ]
|
221 | 218 | },
|
| 219 | + "SubnetId": { |
| 220 | + "Ref": "VPCPublicSubnet2Subnet74179F39" |
| 221 | + }, |
222 | 222 | "Tags": [
|
223 | 223 | {
|
224 | 224 | "Key": "Name",
|
|
234 | 234 | "VPCPrivateSubnet1Subnet8BCA10E0": {
|
235 | 235 | "Type": "AWS::EC2::Subnet",
|
236 | 236 | "Properties": {
|
237 |
| - "VpcId": { |
238 |
| - "Ref": "VPCB9E5F0B4" |
239 |
| - }, |
240 | 237 | "AvailabilityZone": {
|
241 | 238 | "Fn::Select": [
|
242 | 239 | 0,
|
|
260 | 257 | "Key": "Name",
|
261 | 258 | "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1"
|
262 | 259 | }
|
263 |
| - ] |
| 260 | + ], |
| 261 | + "VpcId": { |
| 262 | + "Ref": "VPCB9E5F0B4" |
| 263 | + } |
264 | 264 | }
|
265 | 265 | },
|
266 | 266 | "VPCPrivateSubnet1RouteTableBE8A6027": {
|
267 | 267 | "Type": "AWS::EC2::RouteTable",
|
268 | 268 | "Properties": {
|
269 |
| - "VpcId": { |
270 |
| - "Ref": "VPCB9E5F0B4" |
271 |
| - }, |
272 | 269 | "Tags": [
|
273 | 270 | {
|
274 | 271 | "Key": "Name",
|
275 | 272 | "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1"
|
276 | 273 | }
|
277 |
| - ] |
| 274 | + ], |
| 275 | + "VpcId": { |
| 276 | + "Ref": "VPCB9E5F0B4" |
| 277 | + } |
278 | 278 | }
|
279 | 279 | },
|
280 | 280 | "VPCPrivateSubnet1RouteTableAssociation347902D1": {
|
|
291 | 291 | "VPCPrivateSubnet1DefaultRouteAE1D6490": {
|
292 | 292 | "Type": "AWS::EC2::Route",
|
293 | 293 | "Properties": {
|
294 |
| - "RouteTableId": { |
295 |
| - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" |
296 |
| - }, |
297 | 294 | "DestinationCidrBlock": "0.0.0.0/0",
|
298 | 295 | "NatGatewayId": {
|
299 | 296 | "Ref": "VPCPublicSubnet1NATGatewayE0556630"
|
| 297 | + }, |
| 298 | + "RouteTableId": { |
| 299 | + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" |
300 | 300 | }
|
301 | 301 | }
|
302 | 302 | },
|
303 | 303 | "VPCPrivateSubnet2SubnetCFCDAA7A": {
|
304 | 304 | "Type": "AWS::EC2::Subnet",
|
305 | 305 | "Properties": {
|
306 |
| - "VpcId": { |
307 |
| - "Ref": "VPCB9E5F0B4" |
308 |
| - }, |
309 | 306 | "AvailabilityZone": {
|
310 | 307 | "Fn::Select": [
|
311 | 308 | 1,
|
|
329 | 326 | "Key": "Name",
|
330 | 327 | "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2"
|
331 | 328 | }
|
332 |
| - ] |
| 329 | + ], |
| 330 | + "VpcId": { |
| 331 | + "Ref": "VPCB9E5F0B4" |
| 332 | + } |
333 | 333 | }
|
334 | 334 | },
|
335 | 335 | "VPCPrivateSubnet2RouteTable0A19E10E": {
|
336 | 336 | "Type": "AWS::EC2::RouteTable",
|
337 | 337 | "Properties": {
|
338 |
| - "VpcId": { |
339 |
| - "Ref": "VPCB9E5F0B4" |
340 |
| - }, |
341 | 338 | "Tags": [
|
342 | 339 | {
|
343 | 340 | "Key": "Name",
|
344 | 341 | "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2"
|
345 | 342 | }
|
346 |
| - ] |
| 343 | + ], |
| 344 | + "VpcId": { |
| 345 | + "Ref": "VPCB9E5F0B4" |
| 346 | + } |
347 | 347 | }
|
348 | 348 | },
|
349 | 349 | "VPCPrivateSubnet2RouteTableAssociation0C73D413": {
|
|
360 | 360 | "VPCPrivateSubnet2DefaultRouteF4F5CFD2": {
|
361 | 361 | "Type": "AWS::EC2::Route",
|
362 | 362 | "Properties": {
|
363 |
| - "RouteTableId": { |
364 |
| - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" |
365 |
| - }, |
366 | 363 | "DestinationCidrBlock": "0.0.0.0/0",
|
367 | 364 | "NatGatewayId": {
|
368 | 365 | "Ref": "VPCPublicSubnet2NATGateway3C070193"
|
| 366 | + }, |
| 367 | + "RouteTableId": { |
| 368 | + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" |
369 | 369 | }
|
370 | 370 | }
|
371 | 371 | },
|
|
383 | 383 | "VPCVPCGW99B986DC": {
|
384 | 384 | "Type": "AWS::EC2::VPCGatewayAttachment",
|
385 | 385 | "Properties": {
|
386 |
| - "VpcId": { |
387 |
| - "Ref": "VPCB9E5F0B4" |
388 |
| - }, |
389 | 386 | "InternetGatewayId": {
|
390 | 387 | "Ref": "VPCIGWB7E252D3"
|
| 388 | + }, |
| 389 | + "VpcId": { |
| 390 | + "Ref": "VPCB9E5F0B4" |
391 | 391 | }
|
392 | 392 | }
|
393 | 393 | },
|
|
453 | 453 | "HostedZoneAlias40D2E006": {
|
454 | 454 | "Type": "AWS::Route53::RecordSet",
|
455 | 455 | "Properties": {
|
| 456 | + "AliasTarget": { |
| 457 | + "DNSName": { |
| 458 | + "Fn::Join": [ |
| 459 | + "", |
| 460 | + [ |
| 461 | + "dualstack.", |
| 462 | + { |
| 463 | + "Fn::GetAtt": [ |
| 464 | + "LB8A12904C", |
| 465 | + "DNSName" |
| 466 | + ] |
| 467 | + } |
| 468 | + ] |
| 469 | + ] |
| 470 | + }, |
| 471 | + "HostedZoneId": { |
| 472 | + "Fn::GetAtt": [ |
| 473 | + "LB8A12904C", |
| 474 | + "CanonicalHostedZoneID" |
| 475 | + ] |
| 476 | + } |
| 477 | + }, |
| 478 | + "HostedZoneId": { |
| 479 | + "Ref": "HostedZoneDB99F866" |
| 480 | + }, |
456 | 481 | "Name": "_foo.test.public.",
|
457 |
| - "Type": "A", |
| 482 | + "Type": "A" |
| 483 | + } |
| 484 | + }, |
| 485 | + "AliasWithHealthCheck61B4E872": { |
| 486 | + "Type": "AWS::Route53::RecordSet", |
| 487 | + "Properties": { |
458 | 488 | "AliasTarget": {
|
459 | 489 | "DNSName": {
|
460 | 490 | "Fn::Join": [
|
|
470 | 500 | ]
|
471 | 501 | ]
|
472 | 502 | },
|
| 503 | + "EvaluateTargetHealth": true, |
473 | 504 | "HostedZoneId": {
|
474 | 505 | "Fn::GetAtt": [
|
475 | 506 | "LB8A12904C",
|
|
479 | 510 | },
|
480 | 511 | "HostedZoneId": {
|
481 | 512 | "Ref": "HostedZoneDB99F866"
|
482 |
| - } |
| 513 | + }, |
| 514 | + "Name": "_foo-health.test.public.", |
| 515 | + "Type": "A" |
483 | 516 | }
|
484 | 517 | }
|
485 | 518 | },
|
|
0 commit comments