File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ if [[ -z ${SSH_KEY_EXIST} ]]; then
4747 --output text > ~ /.ssh/${SSH_KEY_NAME}
4848
4949 chmod 400 ~ /.ssh/${SSH_KEY_NAME}
50- echo " ${SSH_KEY_NAME} " >> env_vars
50+ echo " export SSH_KEY_NAME= ${SSH_KEY_NAME} " >> env_vars
5151else
5252 echo " [WARNING] SSH_KEY_NAME ${SSH_KEY_NAME} already exist"
5353fi
@@ -66,7 +66,7 @@ if [[ -z ${VPC_ID} ]]; then
6666fi
6767
6868if [[ ! -z $VPC_ID ]]; then
69- echo " ${VPC_ID} " >> env_vars
69+ echo " export VPC_ID= ${VPC_ID} " >> env_vars
7070 echo " [INFO] VPC_ID = ${VPC_ID} "
7171else
7272 echo " [ERROR] failed to retrieve VPC ID"
@@ -104,7 +104,7 @@ SUBNET_ID=`aws ec2 describe-subnets --query "Subnets[*].SubnetId" \
104104 | jq -r .[$( python3 -S -c " import random; print(random.randrange(${AZ_COUNT} ))" ) ]`
105105
106106if [[ ! -z $SUBNET_ID ]]; then
107- echo " ${SUBNET_ID} " >> env_vars
107+ echo " export SUBNET_ID= ${SUBNET_ID} " >> env_vars
108108 echo " [INFO] SUBNET_ID = ${SUBNET_ID} "
109109else
110110 echo " [ERROR] failed to retrieve SUBNET ID"
You can’t perform that action at this time.
0 commit comments