-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
AWS Provider v2.2.0 - v2.10.0 keeps changing settings in aws_ec2_transit_gateway_vpc_attachment resource #8600
Comments
Any updates on this? Thank you |
Hi All and Terraform Team, I am also facing the issue that even if Transit Gateway attachment already created by terraform code and all other things remains the same, every subsequent run of the same code without any change modifies the attachment in place. Can you please look into this priority as I have 100+ account and their VPCs to attach to Transit Gateway. Below are details for your analysis. Definition : resource "aws_ec2_transit_gateway_vpc_attachment" "target_tgw_attach" { Plan: -- Apply : aws_ec2_transit_gateway_vpc_attachment.target_tgw_attach[0]: Modifying... version : 12.20 |
@apparentlymart , sorry to tag you in this issue. But looks like this issue passing from 11 to 12 version. |
I think, this gives the answers on why it is always applying the changes even if there is no change in old and new value. Referring to https://www.terraform.io/docs/providers/aws/r/ec2_transit_gateway_vpc_attachment.html, transit_gateway_default_route_table_association and transit_gateway_default_route_table_propagation cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
Community Note
Terraform & AWS Provider Version
Terraform:
v0.11.11
AWS Provider version: tested with
2.2.0
up to2.10.0
Affected Resource(s)
Terraform Configuration Files
For the below resource, AWS Provider from version
2.2.0
up to2.10.0
will keep setting the propertiestransit_gateway_default_route_table_association
andtransit_gateway_default_route_table_propagation
tofalse
even though they are already set tofalse
.It seems to think that these settings are set to
true
but they are not.If I downgrade back to AWS Provider version
1.57.0
which was my previous version before upgrading it, then I don't see this behavior anymore.Expected Behavior
No change should happen as the resource is already in the configured state.
Actual Behavior
Steps to Reproduce
Upgrade to AWS Provider version
2.2.0
or higher and then:terraform plan
Has anyone else noticed this?
Thanks,
The text was updated successfully, but these errors were encountered: