-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
data-source/aws_ami and data-source/aws_ami_ids: Require owners argument #5576
Conversation
c74ad5a
to
1b9cd62
Compare
* data-source/aws_ami: Switch owners argument from Optional to Required * data-source/aws_ami_ids: Switch owners argument from Optional to Required * tests: Update aws_ami data sources to use owners instead of filter > name = "owner-alias" Output from acceptance testing: ``` --- PASS: TestAccAWSAmiDataSource_instanceStore (8.89s) --- PASS: TestAccDataSourceAwsAmiIds_basic (9.72s) --- PASS: TestAccAWSAmiDataSource_natInstance (9.72s) --- PASS: TestAccAWSAmiDataSource_localNameFilter (12.65s) --- PASS: TestAccDataSourceAwsAmiIds_sorted (14.02s) --- PASS: TestAccAWSAmiDataSource_windowsInstance (16.91s) ```
1b9cd62
to
493e23f
Compare
This pull request has been rebased with master and passes acceptance testing:
Once TravisCI agrees, merging and adding CHANGELOG notes. The Version 2 Upgrade Guide has documented this change for a few months as well. |
See hashicorp/terraform-provider-aws#5576 for more info
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! |
The lookup is insecure by default and there have been numerous security events relating to referencing unexpected AMIs. This implementation explicitly requires the root level
owners
argument to use Terraform's built-in schema validation, however concessions might be necessary to support theowner-alias
andowner-id
filters (back to leavingowners
optional in the schema).Reference: hashicorp/packer#6584
Changes proposed in this pull request:
Output from acceptance testing: (others will be handled via daily acceptance testing)