Prerequisite

AWS Fargate with Amazon EKS is currently only available in the following Regions:

Region Name Region
US East (N. Virginia) us-east-1
US East (Ohio) us-east 2
US West (Oregon) us-west-2
Europe (Ireland) eu-west-1
Europe (Frankfurt) eu-central-1
Asia Pacific (Singapore) ap-southeast-1
Asia Pacific (Sydney) ap-southeast-2
Asia Pacific (Tokyo) ap-northeast-1

Run this command to verify if AWS Fargate with Amazon EKS is available in the Region you choose to deploy your Amazon EKS cluster.

if [[ $AWS_REGION =~ ^(us-east-1|us-east-2|us-west-2|eu-west-1|eu-central-1|ap-southeast-1|ap-southeast-2|ap-northeast-1)$ ]]
then
  echo -e "\033[0;32mAWS Fargate with Amazon EKS is available in your Region."
  echo "You can continue this lab."
else
  echo -e "\033[0;31mAWS Fargate with Amazon EKS is not yet available in your Region ($AWS_REGION)."
  echo "Deploy your cluster in one of the Regions mentioned above."
fi

Don’t continue the lab unless the output is: AWS Fargate with Amazon EKS is available in your Region. You can continue this lab.