Commit 4820edf 1 parent fed54a5 commit 4820edf Copy full SHA for 4820edf
File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,11 @@ ssh-keygen -t rsa -N "" -f ~/.ssh/$TF_VAR_variant
6
6
ssh-add ~ /.ssh/$TF_VAR_variant
7
7
8
8
echo " Running terraform init"
9
- for i in {1..3}; do terraform init && break ; done
9
+ for i in {1..3}; do terraform init --upgrade && break ; done
10
10
11
11
echo " Running terraform apply. This may take a while. Expect 15 minutes."
12
12
# we try to recover a couple times in case the first try did not work - which currently happens frequently.
13
- for i in {1..3}; do terraform apply -auto-approve > ./log && break ; done
14
-
15
- cat log
16
-
17
- # something like `cluster-address = dcos-ui-system-tests-1371554912.us-west-2.elb.amazonaws.com`
18
- line=$( grep -o " cluster-address = \S*" ./log | head -n1)
13
+ for i in {1..3}; do terraform apply -auto-approve && break ; done
19
14
20
15
# print that cluster url
21
- echo http://$( echo $line | cut -d " " -f3 )
16
+ echo http://$( terraform output cluster-address )
You can’t perform that action at this time.
0 commit comments