mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-15 17:28:58 +03:00
Make the AWS region configurable
This commit is contained in:
committed by
Kelsey Hightower
parent
68dc4507c2
commit
b7ae204c86
@@ -236,7 +236,7 @@ for host in ${KUBERNETES_HOSTS[*]}; do
|
||||
PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \
|
||||
--filters "Name=tag:Name,Values=${host}" | \
|
||||
jq -r '.Reservations[].Instances[].PublicIpAddress')
|
||||
scp ca.pem kubernetes-key.pem kubernetes.pem \
|
||||
scp -o "StrictHostKeyChecking no" ca.pem kubernetes-key.pem kubernetes.pem \
|
||||
ubuntu@${PUBLIC_IP_ADDRESS}:~/
|
||||
done
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user