-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature request: Infer AMI from current configuration or allow user to pass custom AMI #34
Comments
wouldn't it be better to provide an AMI template string? also for my use case we need to specify a specific owner to search for that ami so something like --custom-ami-owner=xxxx --custom-ami-template="AmazonLinux2-EKS-{Ver}*" where {Ver} is the version you are trying to upgrade to. but this also assumes that the instances it finds that are custom are "AmazonLinux" instances what if you have AmazonLinux, Ubuntu and Windows images? how do you specify the templates and owners for each of those? |
passing the AMI ID itself is the most direct way and is also the method that EKS managed nodegroups, or self-managed nodegroups, follow. But I am curious to hear more about why passing the owner and a string template would be preferred? That looks like it could get quite tricky - what if multiple AMI IDs are matched and returned, which one to select? |
aren't the AMI ID's specific to each region? we have multiple VPN's in multiple regions so we would have to lookup the ami ID value for each region and pass that as the parameter. plus with nodes that have Windows and Linux instances which AMI are you passing for this switch? I think we almost need a JSON object to specify the configuration for what we have in "latest_ami.py get_latest_ami method" if you look there it has "Amazon Linux 2", "Windows", "bottlerocket" and "ubuntu" so the custom ami's could potentially have entries for each of these that would have to be specified. In the case that multiple AMi's are returned for the same search string I would think you just use the most current image. |
This issue has not received any attention in 30 days. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Use case
(Instead of trying to re-interpret the current logic, I'll defer to describing the intended logic)
--custom-ami-id
argument should be added for users to pass a custom AMI ID.When performing an upgrade of EKS and/or self-managed nodegroups, the process for determining the appropriate AMI should follow:
Self-managed nodegroup
If
--custom-ami-id
has been supplied with a value, simply proceed to grab each ASG and its LT and create a new LT version with the AMI ID provided. If--custom-ami-id
has NOT been supplied:--custom-ami-id
has not been supplied, halt progress and return details to user that a custom AMI ID is required when an Amazon EKS optimized AMI is not currently in useEKS managed nodegroup
Default launch template
Custom launch template
--custom-ami-id
, otherwise abort and report (nice rhyme!)Solution/User Experience
The logic used for determining an AMI ID should be consistent and reliable without assumptions
Alternative solutions
No response
The text was updated successfully, but these errors were encountered: