test-kitchen / kitchen-ec2

A Test Kitchen Driver for Amazon EC2
Other
222 stars 202 forks source link

Explicitly query image by ID by default for deprecated AMIs #587

Open sillidev opened 2 years ago

sillidev commented 2 years ago

:frowning_person: Problem Statement

AWS changed image visibility for deprecated ones (ref). In short, non-owner user can only describe deprecated AMI by by specifying its ID.

AFAIK, for Debian 8/Centos 6/Centos 7, all matched results returned from image_search are all older than 2 years. Soon they will no longer visible in search query.

Impact:

End user can set image_id for such platform in their kitchen.yml as work-around. It's nice that the driver works out-of-box.

:grey_question: Possible Solution

For end-of-life OS which doesn't have new AMI anymore, we can explicitly set their image_id.

:arrow_heading_up: Describe alternatives you've considered

n/a

:heavy_plus_sign: Additional context

n/a