Determine EKS AMIs

Determine the EKS AMIs required for each EKS upgrade stage. You will incrementally upgrade from your current version, to a currently supported version.

  1. For each incremental upgrade, run the following command:

    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.

  2. Make note of each AMI image ID that the system returns each time. You will need this information in the next step in the upgrade process.

    For example:

    $ 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 Templates