imfreedom/bamboo-terraform
Clone
Summary
Browse
Changes
Graph
add some more logic around the remote state stuff
draft
2019-05-27, Gary Kramlich
7d921b9be0a8
Parents
a70f5ef491c9
Children
435e16a05f1c
add some more logic around the remote state stuff
1 files changed, 3 insertions(+), 1 deletions(-)
+3
-1
Makefile
--- a/Makefile Mon May 27 07:35:00 2019 -0500
+++ b/Makefile Mon May 27 07:37:14 2019 -0500
@@ -33,7 +33,9 @@
$(warning *)
_state: _require_node
- rm -f terraform.tfstate
+ifneq ("$(wildcard .terraform/terraform.tfstate)","")
+ rm .terraform/terraform.tfstate
+endif
terraform init --backend-config="key=$(NODE).tfstate"
nodes/$(NODE).tfvars: