Skip to content

Commit

Permalink
Updated get_latest_ami.py to support eks k8s v1.29 and AL2023 (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhau authored Mar 25, 2024
1 parent 205d748 commit b628e12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AMI/get_latest_amis.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def get_ecs_meta_dict(topic=TOPIC_A):

def get_eks_meta_dict(topic=TOPIC_A):
K8S_VERSIONS = [
"1.29",
"1.28",
"1.27",
"1.26",
Expand All @@ -79,6 +80,8 @@ def get_eks_meta_dict(topic=TOPIC_A):
ami_variants[f"/aws/service/eks/optimized-ami/{k8s_version}/amazon-linux-2/recommended"] = "Amazon EKS-optimized Amazon Linux 2 (x86_64) AMI"
ami_variants[f"/aws/service/eks/optimized-ami/{k8s_version}/amazon-linux-2-arm64/recommended"] = "Amazon EKS-optimized Amazon Linux 2 (arm64) AMI"
ami_variants[f"/aws/service/eks/optimized-ami/{k8s_version}/amazon-linux-2-gpu/recommended"] = "Amazon EKS-optimized Amazon Linux 2 (GPU) AMI"
ami_variants[f"/aws/service/eks/optimized-ami/{k8s_version}/amazon-linux-2023/arm64/standard/recommended"] = "Amazon EKS-optimized Amazon Linux 2023 (AL2023) (arm64) AMI"
ami_variants[f"/aws/service/eks/optimized-ami/{k8s_version}/amazon-linux-2023/x86_64/standard/recommended"] = "Amazon EKS-optimized Amazon Linux 2023 (AL2023) (x86_64) AMI"
elif topic == TOPIC_B:
# https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id-bottlerocket.html
for k8s_version in K8S_VERSIONS:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## 2024-03-26

### Changed

* Updated get_latest_ami.py to support eks k8s v1.29 and AL2023

## 2023-11-22

### Changed
Expand Down

0 comments on commit b628e12

Please sign in to comment.