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 Data Source]: aws_servicecatalog_search_products #31246

Open
LozanoMatheus opened this issue May 7, 2023 · 1 comment
Open

[New Data Source]: aws_servicecatalog_search_products #31246

LozanoMatheus opened this issue May 7, 2023 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-data-source Introduces a new data source. service/servicecatalog Issues and PRs that pertain to the servicecatalog service.

Comments

@LozanoMatheus
Copy link

Description

Currently, the only way to get the products in the Service Catalog is by using the data source aws_servicecatalog_product which seems to be using the DescribeProductAsAdminInput, but this API requires an id or name.

The idea is to use the API SearchProductsAsAdminInput, so we can use the filter to get the products.

data "aws_servicecatalog_search_products" "example" {}

### Output
# Same as the `DescribeProductAsAdminInput` but in an array.

AWS CLI documentation servicecatalog - search-products
Service Catalog API documentation - DescribeProduct

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

aws_servicecatalog_search_products

Potential Terraform Configuration

data "aws_servicecatalog_search_products" "example" {}

References

#21674

AWS CLI documentation servicecatalog - search-products

API SearchProductsAsAdminInput

Would you like to implement a fix?

No

@LozanoMatheus LozanoMatheus added the needs-triage Waiting for first response or review from a maintainer. label May 7, 2023
@github-actions github-actions bot added the service/servicecatalog Issues and PRs that pertain to the servicecatalog service. label May 7, 2023
@github-actions
Copy link

github-actions bot commented May 7, 2023

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.

@justinretzolk justinretzolk added enhancement Requests to existing resources that expand the functionality or scope. new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels May 9, 2023
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. new-data-source Introduces a new data source. service/servicecatalog Issues and PRs that pertain to the servicecatalog service.
Projects
None yet
Development

No branches or pull requests

2 participants