Retrieving Amazon EKS optimized Windows AMI IDs
You can programmatically retrieve the Amazon Machine Image (AMI) ID for Amazon EKS optimized
AMIs by querying the Amazon Systems Manager Parameter Store API. This parameter eliminates the need for
you to manually look up Amazon EKS optimized AMI IDs. For more information about the Systems Manager
Parameter Store API, see GetParameter. The IAM principal that you use must have the ssm:GetParameter
IAM permission to retrieve the Amazon EKS optimized AMI metadata.
You can retrieve the AMI ID with the Amazon CLI or the Amazon Web Services Management Console.
- Amazon CLI
You can retrieve the image ID of the latest recommended Amazon EKS optimized Windows AMI with the following command by using the sub-parameter
image_id
. You can replace
with any supported Amazon EKS version and can replace1.28
with an Amazon EKS supported Region for which you want the AMI ID. Replaceregion-code
withCore
Full
to see the Windows Server full AMI ID. For Kubernetes version1.23
or later, you can replace
with2019
2022
to see the Windows Server 2022 AMI ID.aws ssm get-parameter --name /aws/service/ami-windows-latest/Windows_Server-
2019
-English-Core
-EKS_Optimized-1.28
/image_id --regionregion-code
--query "Parameter.Value" --output textAn example output is as follows.
ami-
1234567890abcdef0
- Amazon Web Services Management Console
-
You can query for the recommended Amazon EKS optimized AMI ID using a URL. The URL opens the Amazon EC2 Systems Manager console with the value of the ID for the parameter. In the following URL, you can replace
with any supported Amazon EKS version and can replace1.27
with an Amazon EKS supported Region for which you want the AMI ID. Replaceregion-code
withCore
Full
to see the Windows Server full AMI ID. For Kubernetes version1.23
or later, you can replace
with2019
2022
to see the Windows Server 2022 AMI ID.https://console.amazonaws.cn/systems-manager/parameters/aws/service/ami-windows-latest/Windows_Server-
2019
-English-Core
-EKS_Optimized-1.28
/image_id/description?region=region-code
The following tables have links to the latest IDs of the Amazon EKS optimized Windows AMIs.
Both Windows Server 2019 and Windows Server 2022 are
Long-Term Servicing Channel (LTSC) releases, whereas Versions 20H2 is a
Semi-Annual Channel (SAC) release. We no longer support SAC releases. For more information
about these release types, see Windows Server release information
- 1.28
-
- 1.27
-
- 1.26
-
- 1.25
-
- 1.24
-
- 1.23
-