You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…1142)
Currently there is a race condition when creating the
public subnet routes for the ec2.VpcNetwork construct. CloudFormation
can attempt to create the public subnet routes to the IGW before the IGW
is attached to the VPC. This change adds a dependency to the public
routes on the IGW attachment.
Fixes#1140.
BREAKING CHANGE: Method signature of
VpcPublicSubnet.addDefaultIGWRouteEntry changed in order to add a
dependency on gateway attachment completing before creating the public
route to the gateway. Instead of passing a gateway ID string, pass in a
cloudformation.InternetGatewayResource object and a
cloudformation.VPCGatewayAttachmentResource object.
Got the following error when deploying ec2.VpcNetwork:
route table rtb-xxxx and network gateway igw-yyyy belong to different networks
. This appears to be a race condition when the gateway attachment has not yet completed by the time the public route is created. The PublicRoute needs to depend on the gateway attachment:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html#gatewayattachment
Example synthesized route:
Route element needs a "DependsOn" for the gateway attachment
The text was updated successfully, but these errors were encountered: