-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
EKS version 1.19 unable to find ami #1247
Comments
I am able to reproduce this issue. As far as I can tell, there are no EKS optimized windows AMIs for Kubernetes 1.19. The latest available is for Kubernetes 1.18. Since I do not use Windows workers in EKS, I added the following variable in
|
When you implement this, you can also remove the code in # Windows nodes are available from k8s 1.14. If cluster version is less than 1.14, fix ami filter to some constant to not fail on 'terraform plan'.
worker_ami_name_filter_windows = (var.worker_ami_name_filter_windows != "" ?
var.worker_ami_name_filter_windows : "Windows_Server-2019-English-Core-EKS_Optimized-${tonumber(var.cluster_version) >= 1.14 ? var.cluster_version : 1.14}-*"
) |
I just opened #1371 to address this. Will you please review it and test it ? |
To upgrade from 1.19 to 1.20 I ran with the module from the PR and the issue with the windows AMI is resolved. |
Looks like in cluster_version: 1.20 it's broken again, with the following filter getting an error. worker_ami_name_filter_windows= "Windows_Server-2004-English-Core-EKS_Optimized-1.20*" Error: Your query returned no results. Please change your search criteria and try again. @alghanmi alghanmi |
This has been fixed in the latest version of this module. Please upgrade your module and follow changelog and docs/upgrades.md for more info. |
@barryib thanks for the reply I have tried with the latest master branch. Looks like it cannot locate the images with filter criteria, I have checked AWS the images is exist. Another question is can I create a worker group with directly assign AMI ? The filter(worker_ami_name_filter_windows) is good, However, in production, without a test changing AMI can cause an issue. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I have issues
I'm submitting a...
What is the current behavior?
When trying to deploy an EKS cluster, version 1.19, I get the following error:
Error: Your query returned no results. Please change your search criteria and try again.
It seems as if the module is unable to find a passing ami for the nodes.
If this is a bug, how to reproduce? Please include a code sample if relevant.
Deploy a version 1.19 EKS cluster
What's the expected behavior?
Terraform should be able to find a suitable ami for this cluster version.
Are you able to fix this problem and submit a PR? Link here if you have already.
No
Environment details
Any other relevant info
None
The text was updated successfully, but these errors were encountered: