-
Notifications
You must be signed in to change notification settings - Fork 202
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
Retrieve AMI IDs from the EC2 API #147
Comments
👍 I currently am just manually changing the ami's from the following list, (https://cloud-images.ubuntu.com/trusty/current/) This would be really nice |
👍 Agree this capability would be useful, and helpful for scenarios requiring private and frequently changing amis |
+1 for this, it would make the lookup part of #199 redundant (although the "default to HVM+EBS would still stand) |
I'm not sure if this is related or not, but... Same thing with RHEL, by the way, and I expect with all platforms. |
@freimer as described here, the platforms:
- name: custom-platform-name
image_search:
"tag:foo": bar Be aware that |
Based on the merges above and original request, closing this as resolved but feel free to re-open if I'm incorrect here. |
@zl4bv There also is a requirement for the Windows provider to work properly with the image-search that it follow an explicit naming convention currently. If it does not include I made a somewhat hacky work around when debugging this https://github.com/test-kitchen/kitchen-ec2/compare/master...jrnt30:windows-driver-association?expand=1 but I'm not sure I particularly like it. Even here, the There is a PR out there from @freimer to just explicitly state how a lot of the functionality is driven off the AMI name which I think could help alleviate some of the issues. |
This is a feature request intending the replace some or all of the functionality provided by the
amis.json
file. This is also a potential solution to #117.Rather than creating a static mapping between a specific OS/image flavour, an EC2 region/AZ, and an AMI ID, I propose using the describe-images API endpoint to look up the AMI ID on-the-fly.
Either you could change
amis.json
to map a short name/alias to the filter parameters that get passed todescribe-images
e.g.and/or you could leave it up to the user to provide the filter(s) in their
.kitchen.yml
file e.g.Thoughts @fnichol @tyler-ball ?
The text was updated successfully, but these errors were encountered: