Skip to content
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_ec2_transit_gateway_vpc_attachment creates diff on each plan #25539

Closed
bebold-jhr opened this issue Jun 23, 2022 · 2 comments
Closed

aws_ec2_transit_gateway_vpc_attachment creates diff on each plan #25539

bebold-jhr opened this issue Jun 23, 2022 · 2 comments
Labels
bug Addresses a defect in current functionality. service/transitgateway Issues and PRs that pertain to the transitgateway service.

Comments

@bebold-jhr
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v1.1.7
registry.terraform.io/hashicorp/aws v4.19.0

Affected Resource(s)

  • aws_ec2_transit_gateway_vpc_attachment

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_ec2_transit_gateway_vpc_attachment" "this" {
  subnet_ids                                      = values(aws_subnet.attachment).*.id
  transit_gateway_id                              = data.aws_ec2_transit_gateway.this.id
  vpc_id                                          = aws_vpc.this.id
  ipv6_support                                    = "disable"
  transit_gateway_default_route_table_association = false
  transit_gateway_default_route_table_propagation = false
}

terraform-provider-aws/examples/transit-gateway-cross-account-vpc-attachment for remaining resources.

Debug Output

Panic Output

Expected Behavior

No changes when executing plan after apply.

Actual Behavior

Tries to set default route properties from true to false on each subsequent plan.

aws_ec2_transit_gateway_vpc_attachment.this will be updated in-place
  ~ resource "aws_ec2_transit_gateway_vpc_attachment" "this" {
        id                                              = "tgw-attach-#########"
      ~ transit_gateway_default_route_table_association = true -> false
      ~ transit_gateway_default_route_table_propagation = true -> false
        # (8 unchanged attributes hidden)
    }

Steps to Reproduce

  1. terraform apply
  2. terraform plan

Important Factoids

References

  • #0000
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/transitgateway Issues and PRs that pertain to the transitgateway service. labels Jun 23, 2022
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 20, 2022
@ewbankkit
Copy link
Contributor

@bebold-jhr Thanks for raising this issue.
It has already been noticed in #21438. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue.
Please add any additional comments there.

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/transitgateway Issues and PRs that pertain to the transitgateway service.
Projects
None yet
Development

No branches or pull requests

3 participants