Skip to content

Commit 07d45cd

Browse files
[Bug Fix] vpc/vpc-*azs - Fix gateway attachment race condition for new IPv6 routes (widdix#471)
1 parent e652c7c commit 07d45cd

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

vpc/vpc-2azs.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Resources:
175175
GatewayId: !Ref InternetGateway
176176
RouteTablePublicAInternetRouteIPv6:
177177
Type: 'AWS::EC2::Route'
178+
DependsOn: VPCGatewayAttachment
178179
Properties:
179180
RouteTableId: !Ref RouteTablePublic
180181
DestinationIpv6CidrBlock: '::/0'
@@ -194,6 +195,7 @@ Resources:
194195
GatewayId: !Ref InternetGateway
195196
RouteTablePublicBInternetRouteIPv6:
196197
Type: 'AWS::EC2::Route'
198+
DependsOn: VPCGatewayAttachment
197199
Properties:
198200
RouteTableId: !Ref RouteTableBPublic
199201
DestinationIpv6CidrBlock: '::/0'

vpc/vpc-3azs.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ Resources:
228228
GatewayId: !Ref InternetGateway
229229
RouteTablePublicAInternetRouteIPv6:
230230
Type: 'AWS::EC2::Route'
231+
DependsOn: VPCGatewayAttachment
231232
Properties:
232233
RouteTableId: !Ref RouteTablePublic
233234
DestinationIpv6CidrBlock: '::/0'
@@ -247,6 +248,7 @@ Resources:
247248
GatewayId: !Ref InternetGateway
248249
RouteTablePublicBInternetRouteIPv6:
249250
Type: 'AWS::EC2::Route'
251+
DependsOn: VPCGatewayAttachment
250252
Properties:
251253
RouteTableId: !Ref RouteTableBPublic
252254
DestinationIpv6CidrBlock: '::/0'
@@ -266,6 +268,7 @@ Resources:
266268
GatewayId: !Ref InternetGateway
267269
RouteTablePublicCInternetRouteIPv6:
268270
Type: 'AWS::EC2::Route'
271+
DependsOn: VPCGatewayAttachment
269272
Properties:
270273
RouteTableId: !Ref RouteTableCPublic
271274
DestinationIpv6CidrBlock: '::/0'

vpc/vpc-4azs.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ Resources:
281281
GatewayId: !Ref InternetGateway
282282
RouteTablePublicAInternetRouteIPv6:
283283
Type: 'AWS::EC2::Route'
284+
DependsOn: VPCGatewayAttachment
284285
Properties:
285286
RouteTableId: !Ref RouteTablePublic
286287
DestinationIpv6CidrBlock: '::/0'
@@ -300,6 +301,7 @@ Resources:
300301
GatewayId: !Ref InternetGateway
301302
RouteTablePublicBInternetRouteIPv6:
302303
Type: 'AWS::EC2::Route'
304+
DependsOn: VPCGatewayAttachment
303305
Properties:
304306
RouteTableId: !Ref RouteTableBPublic
305307
DestinationIpv6CidrBlock: '::/0'
@@ -319,6 +321,7 @@ Resources:
319321
GatewayId: !Ref InternetGateway
320322
RouteTablePublicCInternetRouteIPv6:
321323
Type: 'AWS::EC2::Route'
324+
DependsOn: VPCGatewayAttachment
322325
Properties:
323326
RouteTableId: !Ref RouteTableCPublic
324327
DestinationIpv6CidrBlock: '::/0'
@@ -338,6 +341,7 @@ Resources:
338341
GatewayId: !Ref InternetGateway
339342
RouteTablePublicDInternetRouteIPv6:
340343
Type: 'AWS::EC2::Route'
344+
DependsOn: VPCGatewayAttachment
341345
Properties:
342346
RouteTableId: !Ref RouteTableDPublic
343347
DestinationIpv6CidrBlock: '::/0'

0 commit comments

Comments
 (0)