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

[Enhancement]: aws_api_gateway_rest_api data source supports tags for querying #37579

Open
ketzacoatl opened this issue May 17, 2024 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/apigateway Issues and PRs that pertain to the apigateway service.

Comments

@ketzacoatl
Copy link
Contributor

ketzacoatl commented May 17, 2024

Description

The aws_apigatewayv2_apis data source supports tags for querying, Conversely, the aws_api_gateway_rest_api data source supports name only [1], and does not have tags. It would be nice to add support for tags to query for an API Gateway, and thus making name optional. [2] is similar but about adding name to the aws_apigatewayv2_api data source (not plural).

It would also be nice if the data source supported multiple API Gateways in the results (rather than error), but IDK if that should be a separate issue, or if this request to support tags should be implemented in a new data source that supports multiple results.

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

  • aws_api_gateway_rest_api data source

Potential Terraform Configuration

data "aws_api_gateway_rest_api" "my_rest_api" {
  tags = { Name = "my-rest-api", Environment = "my-env" }
}


### References

[1]: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/api_gateway_rest_api
[2]: https://github.com/hashicorp/terraform-provider-aws/issues/31298

### Would you like to implement a fix?

No
@ketzacoatl ketzacoatl added the enhancement Requests to existing resources that expand the functionality or scope. label May 17, 2024
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/apigateway Issues and PRs that pertain to the apigateway service. label May 17, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 17, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/apigateway Issues and PRs that pertain to the apigateway service.
Projects
None yet
Development

No branches or pull requests

2 participants