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 Resource: data aws_ec2_managed_prefix_lists #17119

Closed
uo-thomas opened this issue Jan 14, 2021 · 3 comments
Closed

New Resource: data aws_ec2_managed_prefix_lists #17119

uo-thomas opened this issue Jan 14, 2021 · 3 comments
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.

Comments

@uo-thomas
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

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 by prefix-list-id or prefix-list-name. I propose a new data resource be created that can select a list of managed prefix lists by owner-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 separate aws_ram_principal_association blocks for each.

New or Affected Resource(s)

  • data.aws_ec2_managed_prefix_lists

References

AWS CLI v2 documentation:

@uo-thomas uo-thomas added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 14, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 14, 2021
@ewbankkit ewbankkit added new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 14, 2021
@ewbankkit
Copy link
Contributor

Relates #13986.
Relates #16738.

@github-actions
Copy link

github-actions bot commented Jan 5, 2023

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Jan 5, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2023
@github-actions
Copy link

github-actions bot commented Mar 7, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.
Projects
None yet
Development

No branches or pull requests

2 participants