File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 1.1.1 (06/04/2017)
2+
3+ * Fix 0.9.2+ support for bootstrap.sh
4+
15## 1.1.0 (28/03/2017)
26
37 * Move from terraform-0.8 to terraform-0.9
Original file line number Diff line number Diff line change 88# #
99# Set Script Version
1010# #
11- readonly script_ver=" 1.1.0 " ;
11+ readonly script_ver=" 1.1.1 " ;
1212
1313# #
1414# Standardised failure function
Original file line number Diff line number Diff line change @@ -154,15 +154,17 @@ fi;
154154 backend \" s3\" {
155155 region = \" ${region} \"
156156 bucket = \" ${bucket} \"
157- key = \" ${project} /${aws_account_id} /${region} /${environment} / ${component_name} .tfstate\"
157+ key = \" ${project} /${aws_account_id} /${region} /bootstrap/bootstrap .tfstate\"
158158 }
159159}" > backend_terraformscaffold.tf \
160160 || error_and_die " Failed to write backend config to $( pwd) /backend_terraformscaffold.tf" ;
161161
162162 # Push Terraform Remote State to S3
163- terraform remote push \
164- || error_and_die " Terraform remote push failed" ;
163+ echo " yes" | terraform init || error_and_die " Terraform init failed" ;
164+
165+ rm -f backend_terraformscaffold.tf;
166+ rm -f terraform.tfstate # Prime not the backup
167+ rm -rf .terraform;
165168
166- rm -f backend_terraformscaffold.tf
167169) || exit $? ;
168170
You can’t perform that action at this time.
0 commit comments