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.86k stars 9.21k forks source link

[New Data Source]: aws_servicecatalog_search_products #31246

Open LozanoMatheus opened 1 year ago

LozanoMatheus commented 1 year ago

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

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue