Determine EKS AMIs
Determine the EKS AMIs required for each EKS upgrade stage (you will go from your current version, for example 1.19, to version 1.23, upgrading one at a time). Run the following command once for each Kubernetes upgrade version:
aws ec2 describe-images \--filters "Name=architecture,Values=x86_64" "Name=name,Values=amazon-eks-node-<Kubernetes version>*" | jq '.Images | map(select((.Description!=null) and (.Description | contains("GPU") | not) and (.ImageLocation | contains("gpu") | not))) | sort_by(.CreationDate) | [last]'
where <Kubernetes version> is your current version.
Make note of the AMI image ID returned each time you run the command. Examples of AMI version determination commands are given here:
$ aws ec2 describe-images \--filters "Name=architecture,Values=x86_64" "Name=name,Values=amazon-eks-node-1.20*" | jq '.Images | map(select((.Description!=null) and (.Description | contains("GPU") | not) and (.ImageLocation | contains("gpu") | not))) | sort_by(.CreationDate) | [last]'|grep "ImageId"
"ImageId": "ami-0aa4096ec49a62235",$ aws ec2 describe-images \--filters "Name=architecture,Values=x86_64" "Name=name,Values=amazon-eks-node-1.21*" | jq '.Images | map(select((.Description!=null) and (.Description | contains("GPU") | not) and (.ImageLocation | contains("gpu") | not))) | sort_by(.CreationDate) | [last]'|grep "ImageId"
"ImageId": "ami-00cf63b12c53803a5",
Next Step: Create Launch Configurations