Open clstokes opened 5 years ago
Retries are set to 3 attempts in EKS CI but this does not seem to be doing the trick. Seems like the fix lives in handling this error with retries in TF: https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/resource_aws_route.go#L444-L450
I have the same issue... is it going to be fixed?
When using
awsx.ec2.Vpc
if a code change causes the VPC to get re-created, then subsequentup
anddestroy
fails.Code
Steps to reproduce
pulumi config set cidrBlock 10.0.0.0/16
pulumi up -y --skip-preview
pulumi config set cidrBlock 172.31.0.0/16
pulumi up -y --skip-preview
InvalidParameterValue: route table association rtbassoc-0dc85cf09166d123c and route table rtb-078fcbf504feb6938 belong to different networks
pulumi destroy -y --skip-preview
Error deleting route: InvalidRoute.NotFound
Output
Workaround
pulumi stack export > stack.json
stack.json
and remove theec2/route:Route
referenced in the error.pulumi stack import < stack.json
up
ordestroy
.