Fix EC2 scripts for blockstream startup

This commit is contained in:
Pankaj Garg 2019-03-28 15:15:36 -07:00 committed by Grimes
parent 1d48c4dd45
commit 15b945a652
1 changed files with 3 additions and 1 deletions

View File

@ -249,12 +249,14 @@ cloud_CreateInstances() {
fi
declare instanceId
IFS=: read -r instanceId _ < <(echo "${instances[0]}")
IFS=: read -r instanceId publicIp privateIp zone < <(echo "${instances[0]}")
(
set -x
# TODO: Poll that the instance has moved to the 'running' state instead of
# blindly sleeping for 30 seconds...
sleep 30
declare region=
region=$(__cloud_GetRegion "$zone")
aws ec2 associate-address \
--instance-id "$instanceId" \
--region "$region" \