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

[New Resources]: Default TGW association and propagation route table settings #35085

Closed
Michagogo opened this issue Dec 28, 2023 · 3 comments · Fixed by #39517
Closed

[New Resources]: Default TGW association and propagation route table settings #35085

Michagogo opened this issue Dec 28, 2023 · 3 comments · Fixed by #39517
Labels
new-resource Introduces a new resource. service/transitgateway Issues and PRs that pertain to the transitgateway service.
Milestone

Comments

@Michagogo
Copy link
Contributor

Description

By default, a transit gateway is created with one route table, with new attachments being automatically set up to associate with that route table and to propagate routes to it. Each of those two behaviors can be suppressed at creation, and if both are disabled the route table is not created. After creation, it’s possible to turn that behavior on and off, with enabling it requiring the user to specify a route table ID. Splitting up the route table can be desirable for use cases such as forcing all traffic through a firewall, inspection appliance, etc. (by having the default association RT be one that sends everything to the central VPC, with the appliance then sending it back through the TGW, where that connection is the only one associated with the default propagation RT). There currently seems to be no way to achieve this in Terraform - the author of my team’s module resorted to taking a region and profile name as variables and making the changes using a null resource with local-exec provisioners to make AWS CLI calls.

Conceptually this would ideally be an argument to the TGW resource itself, but in practice that doesn’t seem likely to be possible because route tables are created in the context of a TGW so you couldn’t reference one on the resource itself.

Requested Resource(s) and/or Data Source(s)

aws_ec2_transit_gateway_default_{propagation,association}

Potential Terraform Configuration

resource "aws_ec2_transit_gateway_default_propagation" {
  transit_gateway_id = foo
  transit_gateway_route_table_id = bar
}

References

No response

Would you like to implement a fix?

No

Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/transitgateway Issues and PRs that pertain to the transitgateway service. label Dec 28, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 28, 2023
@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 11, 2024
Copy link

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.70.0 milestone Sep 30, 2024
Copy link

github-actions bot commented Oct 4, 2024

This functionality has been released in v5.70.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. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-resource Introduces a new resource. service/transitgateway Issues and PRs that pertain to the transitgateway service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants