-
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
d/aws_prefix_list: add support for managed prefix lists #14110
d/aws_prefix_list: add support for managed prefix lists #14110
Conversation
…tching multiple prefix lists
3812bf6
to
07f0e09
Compare
…source-managed-prefix-list
…anaged-prefix-list
07f0e09
to
ccd00bf
Compare
Notification of Recent and Upcoming Changes to ContributionsThank you for this contribution! There have been a few recent development changes that affect this pull request. We apologize for the inconvenience, especially if there have been long review delays up until now. Please note that this is automated message from an unmonitored account. See the FAQ for additional information on the maintainer team and review prioritization. If you are unable to complete these updates, please leave a comment for the community and maintainers so someone can potentially continue the work. The maintainers will encourage other contributors to use the existing contribution as the base for additional changes as appropriate. Otherwise, contributions that do not receive updated code or comments from the original contributor may be closed in the future so the maintainers can focus on active items. For the most up to date information about Terraform AWS Provider development, see the Contributing Guide. Additional technical debt changes can be tracked with the As part of updating a pull request with these changes, the most current unit testing and linting will run. These may report issues that were not previously reported. Terraform 0.12 SyntaxReference: #8950 Version 3 and later of the Terraform AWS Provider, which all existing contributions would potentially be added, only supports Terraform 0.12 and later. Certain syntax elements of Terraform 0.11 and earlier show deprecation warnings during runs with Terraform 0.12. Documentation and test configurations, such as those including deprecated string interpolations ( Action Required: Terraform Plugin SDK Version 2Reference: #14551 The Terraform AWS Provider has been upgraded to the latest version of the Terraform Plugin SDK. Generally, most changes to contributions should only involve updating Go import paths in source code files. Please see the referenced issue for additional information. Removal of website/aws.erb FileReference: #14712 Any changes to the Upcoming Change of Git Branch NamingReference: #14292 Development environments will need their upstream Git branch updated from Upcoming Change of GitHub OrganizationReference: #14715 This repository will be migrating from https://github.com/terraform-providers/terraform-provider-aws to https://github.com/hashicorp/terraform-provider-aws. No practitioner or developer action is anticipated and most GitHub functionality will automatically redirect to the new location. Go import paths including |
Any chance of getting this merged and released ? |
@roberth-k Do you know when this will be merged? Would love to have this in. |
(Note: breaking change label applied due to containing commits from other pull request: #14109 (review) -- will remove the label when those feedback items are also addressed in this pull request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @roberth-k 👋 Thank you again for all the work so far. 😄 It felt important to drop this first comment in since it might be easiest to submit a net-new PR without the baggage of the prior commits. I can review that implementation immediately if/when its available. 👍
|
||
filters, filtersOk := d.GetOk("filter") | ||
|
||
req := &ec2.DescribePrefixListsInput{} | ||
req := &ec2.DescribeManagedPrefixListsInput{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a very forward comment here since it will dramatically change the implementation -- rather than change the API call associated with the existing data source, which can cause issues in environments that utilize restrictive IAM permissions or with AWS "compatible" APIs that may not support the new API call, the preference would be to create a separate data source so operators can choose the appropriate solution. 👍
It may be easiest to close this pull request and separately submit a pull request with just a new aws_ec2_managed_prefix_list
data source that for now just tests AWS managed prefix lists. Once #14068 is merged, we can add any remaining functionality to the new data source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bflad,
may not support the new API call,
I hadn't considered this detail, and it makes the right course clear in retrospect. Indeed, the managed prefix list API-s require a different set of IAM actions.
Just to confirm, is aws_ec2_managed_prefix_list
(as well as aws_ec2_managed_prefix_list_entry
in the resource PR) the preferred nomenclature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please, and thank you regarding the naming! We can separately discuss the merits of an _entry
resource in the other pull request.
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
Relates #14068, #14109 (both must be merged before this change), #13986
Ignore changes related to the
aws_prefix_list
andaws_prefix_list_entry
resources: code from #14068 are necessary in order to be able to test changes to the data source.As stated in the discussion of #14068:
However, I'm happy to expose managed prefix lists as a separate data source if that's the maintainers' preference.
Release note for CHANGELOG:
Output from acceptance testing: