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

data_source_aws_ec2_transit_gateway_route_table list output ids #12373

Closed
codyrat opened this issue Mar 12, 2020 · 2 comments · Fixed by #17589
Closed

data_source_aws_ec2_transit_gateway_route_table list output ids #12373

codyrat opened this issue Mar 12, 2020 · 2 comments · Fixed by #17589
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@codyrat
Copy link

codyrat commented Mar 12, 2020

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

Description

Request enhancement or create new data module for getting the list of transit gateway route table ids.

I would like to have the equivalent functionality that exists in the cli tool for describe-transit-gateway-route-tables to generate a list of tgw route table ids. The output result should allow other resource modules to modify content within each route table id.

The use case is a situation where we need to change a specific route to an attachment for a list tgw route tables. Each tgw route table would be modified depending on the readiness of service behind the specific attachment.

aws ec2 describe-transit-gateway-route-tables --filters Name="transit-gateway-id",Values="tgw-xxxxxxxxxxxxxxxx"

New or Affected Resource(s)

  • data_source_aws_ec2_transit_gateway_route_table

Potential Terraform Configuration

data "aws_ec2_transit_gateway_route_tables" "current" {

  filter {
    name   = "transit-gateway-id"
    values = [data.aws_ec2_transit_gateway.current.id]
  }
}
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

  • #0000
@codyrat codyrat added the enhancement Requests to existing resources that expand the functionality or scope. label Mar 12, 2020
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Mar 12, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 12, 2020
@anGie44 anGie44 added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 12, 2021
@anGie44 anGie44 added this to the v3.33.0 milestone Mar 18, 2021
@ghost
Copy link

ghost commented Mar 18, 2021

This has been released in version 3.33.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!

@ghost
Copy link

ghost commented Apr 18, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
2 participants