hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.75k stars 9.11k forks source link

[Enhancement]: Retrieve transit gateway routes #30771

Closed Maarc-D closed 1 year ago

Maarc-D commented 1 year ago

Description

To put in place complex network infrastructure automated by terraform based on multiple transitgateway peering, in order to route flow correctly, and because we can not propagate route table from transit gateway peering (only for VPC attachement) would be interesting to have a data source retrieving all route of a transit gateway route table

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

Potential Terraform Configuration

data "aws_ec2_transit_gateway_route_table_routes" "this" {
  filter {
    name = "type"
    values = ["propagated"]
  }
}

References

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayRoutes.html https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TransitGatewayRoute.html

Would you like to implement a fix?

Yes

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 year ago

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

github-actions[bot] commented 1 year ago

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.