-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Support New Resource and Data Source for EC2 Managed Prefix Lists #13986
Comments
I'll work on a PR for this. Additional affected resources:
|
@roberth-k Thanks for offering to tackle this. |
Thanks @ewbankkit -- if you could update |
Any idea re approx ETA for this feature release? |
Just a note that support could also be added to transit gateway route table resources https://aws.amazon.com/fr/about-aws/whats-new/2020/08/amazon-transit-gateway-customers-use-own-prefix-lists-simplify-ip-management/ |
Any idea on the release this feature will be available? |
also looking forward to this feature |
Hello here, Any update regarding the release of this feature ? |
Will this feature also add an aws_managed_prefix_list data source as well? |
Just for clarification, there are essentially two types of prefix lists in AWS: AWS managed and Customer Managed. The existing prefix_list data source @Tensho referenced uses the DescribePrefixLists API (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePrefixLists.html) and will only return AWS managed prefix lists. What I believe we're looking for is a data_source to reference Customer managed prefix lists which would need to call the DescribeManagedPrefixLists API (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeManagedPrefixLists.html). To take it one step further, I'd love to see the ability to also create/manage customer-managed prefix lists. |
Hi @JosephHobbs; #14110 updates the |
That's awesome. Thanks for the clarification/information! I can't wait until this feature is available... |
Hi all! 👋 Just wanted to direct you to our public roadmap for this quarter (Nov-Jan) in which this item has been mentioned. Due to the significant community interest in support for this feature, we will be looking at merging existing contributions soon. We appreciate all the contributions and feedback thus far. Look out for support in the provider soon! |
To provide an update, this is now under active review and should be released within the next 3 weeks or so. Shout out to @roberth-k for the implementation efforts so far. 🎉 |
For housekeeping purposes, please note that this issue will be specifically for tracking the creation of the following (and I will update the title):
For following EC2 Route and EC2 Route Table updates, please see: #15273 For following EC2 Transit Gateway Prefix List Reference updates, please see: #16572 If there is other functionality that should be updated as part of supporting EC2 Managed Prefix Lists, please create other new GitHub issues. 👍 |
Just to clarify, if we wanted support for using user-managed prefix lists in ingress and egresss security group rules, that'd be under a new issue? cheers |
@ahmgithubahm great question, and yes please, create a separate issue to ensure we do not miss that! |
AWS-managed and (customer) Managed Prefix Lists form a shared namespace, i.e. the |
I was half-way through raising the enhancement request, but thought I'd better check what happens if you try using the prefix_list_ids argument on an ingress rule in an aws_security_group_rule - and ... it just works. Obviously I hard-coded the pl-nnnn id, but the ingress rule was successfully created. It seems that despite the documentation for prefix_list_ids in aws_security_group_rule saying it's for egress only, this is not actually enforced by Terraform (AWS provider 3.20.0), so can be successfully used for ingress as well, with any valid prefix list ids, even customer-managed. I have not tested this in the aws_security_group resource, since I set all security group rules separately. |
Support for the new For operators in AWS GovCloud (US) and potentially other partitions, please note that the EC2 API does not yet support this functionality. Followup issues for tracking:
|
This has been released in version 3.22.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
New or Affected Resource(s)
New
aws_ec2_managed_prefix_list
Affected
aws_route_table
aws_route
Potential Terraform Configuration
References
Announcement.
User guide.
Requires AWS SDK v1.32.12:
The text was updated successfully, but these errors were encountered: