imfreedom/bamboo-terraform

7d921b9be0a8
Parents a70f5ef491c9
Children 435e16a05f1c
add some more logic around the remote state stuff
  • +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: