New Resource: data aws_ec2_managed_prefix_lists #17119
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.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Community Note
Description
Currently, the data resource
aws_ec2_managed_prefix_list
exists and refers to a single managed prefix list which you can select by filtering byprefix-list-id
orprefix-list-name
. I propose a new data resource be created that can select a list of managed prefix lists byowner-id
,prefix-list-name
with if there is a naming pattern that is already in place that would return multiple managed prefix lists, or by tag.AWS CLI already supports getting a list of managed prefix lists with the the following command:
aws ec2 describe-managed-prefix-lists --filter Name=tag:Name,Values=values
The contents of which would be helpful in my specific use case of having existing managed prefix list already created, adding the new data resource to select several managed prefix lists based on name or tag, and then creating an
aws_ram_principal_association
with a for_each loop to iterate through the list to share the lists with AWS Resource Access Manager instead of having to create separateaws_ram_principal_association
blocks for each.New or Affected Resource(s)
References
AWS CLI v2 documentation:
The text was updated successfully, but these errors were encountered: