-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/aws_ec2_transit_gateway_route_table_propagation: Error: Provider produced inconsistent result after apply - resource have been created - and TFE cannot apply again #14043
Comments
I'm seeing similar issue with appmesh:
The issue is quite random, and it's quite hard to reproduce, but the AWS Resource (Virtual Node in Appmesh) gets created without Terraform storing any mention of it in statefile. This causes terraform to fail on retry.
Let me know if that belongs here, or you'd like another ticket specifically for AppMesh. |
And today with
|
Is this one related? This seems to me like a general issue with AWS Provider, perhaps there should ba a centralised fix for this type of issues? |
Same for aws_ec2_transit_gateway_route resource. |
…able and disable operations to complete Reference: #14043 Reference: #16796 The waiter should help prevent the read-after-create eventual consistency issue, but also added the `d.IsNewResource()` checks to ensure the confusing Terraform CLI error is prevented. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSEc2TransitGatewayRouteTablePropagation_basic (385.06s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSEc2TransitGatewayRouteTablePropagation_basic (348.55s) ```
…able and disable operations to complete (#18470) * resource/aws_ec2_transit_gateway_route_table_propagation: Wait for enable and disable operations to complete Reference: #14043 Reference: #16796 The waiter should help prevent the read-after-create eventual consistency issue, but also added the `d.IsNewResource()` checks to ensure the confusing Terraform CLI error is prevented. Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSEc2TransitGatewayRouteTablePropagation_basic (385.06s) ``` Output from acceptance testing in AWS GovCloud (US): ``` --- PASS: TestAccAWSEc2TransitGatewayRouteTablePropagation_basic (348.55s) ``` * Update CHANGELOG for #18470
This has been released in version 3.35.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform Enterprise
0.12.28
Affected Resource(s)
aws_ec2_transit_gateway_vpc_attachment.vpc_attachment
aws_ec2_transit_gateway_route_table_propagation.route_table_propagation
Terraform Configuration Files
Panic Output
Error: Provider produced inconsistent result after apply
When applying changes to
module.tgw-vpc-attachment.aws_ec2_transit_gateway_route_table_propagation.route_table_propagation[2],
provider "registry.terraform.io/-/aws" produced an unexpected new value for
was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
And on runs after:
module.tgw-vpc-attachment.aws_ec2_transit_gateway_vpc_attachment.vpc_attachment[0]: Modifications complete after 1s [id=tgw-attach-xxxx]
module.tgw-vpc-attachment.aws_ec2_transit_gateway_route_table_propagation.route_table_propagation[2]: Creating...
Error: error enabling EC2 Transit Gateway Route Table (tgw-rtb-xxxx) propagation (tgw-attach-xxx): TransitGatewayRouteTablePropagation.Duplicate: Propagation tgw-attach-xxx already exists in Transit Gateway Route Table tgw-rtb-xxx.
status code: 400, request id: 9a4ea138-cb93-xx-xxx-xx
on .terraform/modules/tgw-vpc-attachment/main.tf line 62, in resource "aws_ec2_transit_gateway_route_table_propagation" "route_table_propagation":
62: resource "aws_ec2_transit_gateway_route_table_propagation" "route_table_propagation" {
Expected Behavior
Transit Gateway propogation should happen and statefile should be writen
Actual Behavior
Terraform statefile thinks that the propogation is not done.
Steps to Reproduce
Not sure how to reproduce at this stage. This has been run many any times before.. rerunning the workspace does not fix it. Hopefully it will not happen on the next workspaces.. we are deploying 5-15 accounts a day..
The text was updated successfully, but these errors were encountered: