Request for Data Source: aws_secretsmanager_secrets (plural) #24421
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
new-data-source
Introduces a new data source.
service/secretsmanager
Issues and PRs that pertain to the secretsmanager service.
Milestone
Community Note
Description
It would be very useful to be able to retrieve a list of aws_secretsmanager_secrets by applying a filter, akin to aws_vpcs (vs aws_vpc).
This would be useful for the same reasons that other plural data sources are useful elsewhere but as a specific example, a list of secrets could be used when creating a
aws_db_proxy
resource where the proxy needs 20 existing secrets attached to it, the ability to have all these retrieved at once in a single data source list via filter is vastly superior to making many single data sources.As mentioned in #13304 (comment) (#13304), the
filter
attribute doesn't follow the same vein as for other data sources so would unfortunately require a bit more work to accomplish but I still believe it's a worthwhile feature for the provider to have.New or Affected Resource(s)
The text was updated successfully, but these errors were encountered: