Skip to content

Commit 0bd7732

Browse files
authored
Merge pull request aws-samples#362 from buzzsurfr/master
Fixes aws-samples#344 and aws-samples#349
2 parents 20b1cac + 5565d75 commit 0bd7732

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

01-path-basics/101-start-here/readme.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ Install kops using the following:
208208
$ chmod +x kops-linux-amd64
209209
$ sudo mv kops-linux-amd64 /usr/local/bin/kops
210210

211+
=== Collect Availability Zones
212+
213+
kops needs to know the availability zones to use when configuring a cluster. We set an environment variable `$AWS_AVAILABILITY_ZONES` based on the region.
214+
215+
$ export AWS_AVAILABILITY_ZONES="$(aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --output text | awk -v OFS="," '$1=$1')"
216+
211217
=== Configure an S3 bucket for kops
212218

213219
kops needs a "`state store`" to store configuration information of the cluster. We will use a s3 bucket with versioning enabled. A state store can work with multiple kops clusters.

0 commit comments

Comments
 (0)