-
Notifications
You must be signed in to change notification settings - Fork 119
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
common: add include_deprecated option to filters #404
Conversation
Thanks for the quick update! Should there be an implementation on top of this to add explanatory warnings / errors which would help the maintenance and troubleshooting ? For example:
wdyt ? It would:
|
@Ckarles this is a nice idea. But it feels a little out of scope for the filter options and data source. Especially since we would have no idea if the image is deprecated without the user actually specifying include_deprecated. The Amazon API result set will not contain the deprecated image by default if you are not the owner. So include_deprecated is need to gain visibility. If you are the own of the ami then you will see them regardless and that is where I think the deprecation_time attributed could be useful. Refer to my comment below.
I see that the data source output does not include deprecation time in the response, which is something we should look to add in a future PR. If you want to open a PR for adding that output that would allow for users to check the deprecation time within the HCL configuration template and fail the build. I'm thinking that maybe something like the following would work
|
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.
I left a question, possible suggestion, but this is otherwise good to me.
When getting the AMIs to build a new image on, we never included deprecated AMIs, as is the default when describing images on AWS. However, the request does offer this option, so we add this to the options to pick from when getting the base AMI.
883f657
to
595a74c
Compare
When getting the AMIs to build a new image on, we never included deprecated AMIs, as is the default when describing images on AWS.
However, the request does offer this option, so we add this to the options to pick from when getting the base AMI.
Closes #403