Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Add support for eks 1.18, 1.19 and 1.20 #253

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dkeightley
Copy link
Contributor

@dkeightley dkeightley commented Sep 29, 2021

Added AMIs for EKS 1.18, 1.19 and 1.20

I didn't have access to 3 regions however (eu-south-1, and cn-*), would anyone be able to help populate these?

The following script was used to automate the retrieval:

#!/bin/bash

_aws_regions="us-east-2 us-east-1 us-west-2 us-west-1 af-south-1 ap-east-1 ap-south-1 ap-northeast-1 ap-northeast-2 ap-northeast-3 ap-southeast-1 ap-southeast-2 ca-central-1 cn-north-1 cn-northwest-1 eu-central-1 eu-west-1 eu-west-2 eu-south-1 eu-west-3 eu-north-1 me-south-1 sa-east-1"

_ami_list=ami.txt

> $_ami_list

for _version in $@
  do
    echo "\"$_version\": {" >> $_ami_list
    for _region in $_aws_regions
      do 
        _eks_ami=`aws ssm get-parameter --no-cli-pager --name /aws/service/eks/optimized-ami/$_version/amazon-linux-2/recommended/image_id --region $_region --query "Parameter.Value" --output text`
        echo "        \"$_region\": \"$_eks_ami\"," >> $_ami_list
        sleep 1
      done
    echo "}," >> $_ami_list
  done

Run with: ./build-map.sh 1.18 1.19 1.20

rancher/rancher#35295

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant