aws-samples / eks-workshop

AWS Workshop for Learning EKS
https://eksworkshop.com
MIT No Attribution
803 stars 1.24k forks source link

fully parameterize the AZ configuration in the eksctl config #1054

Closed brentley closed 3 years ago

brentley commented 3 years ago

in: https://www.eksworkshop.com/030_eksctl/launcheks/

replace the hardcoded "a/b/c" AZs with AZ values from the current region.

brentley commented 3 years ago

declare -a azs=($(aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --output text))

then you can substitute into the config file: ${azs[0]} ${azs[1]} ${azs[2]}