diff --git a/Makefile b/Makefile index fc6dca4..4995b92 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ CODE_PATH ?= . init: - @cd $(CODE_PATH) && terraform init -reconfigure -upgrade -backend-config="access_key=$(B2ACCESS)" -backend-config="secret_key=$(B2SECRET)" + @cd $(CODE_PATH) && terraform init -reconfigure -upgrade -backend-config=./backend.tfvars plan: init validate - @cd $(CODE_PATH) && terraform plan -var="hcloud_token=$(HETZNERKEY)" + @cd $(CODE_PATH) && terraform plan apply: init validate - @cd $(CODE_PATH) && terraform apply --auto-approve -var="hcloud_token=$(HETZNERKEY)" + @cd $(CODE_PATH) && terraform apply --auto-approve refresh: init validate - @cd $(CODE_PATH) && terraform refresh -var="hcloud_token=$(HETZNERKEY)" + @cd $(CODE_PATH) && terraform refresh fmt: @cd $(CODE_PATH) && terraform fmt -check -recursive @@ -22,4 +22,4 @@ output: init @cd $(CODE_PATH) && terraform output destroy: init validate - @cd $(CODE_PATH) && terraform destroy --auto-approve -var="hcloud_token=$(HETZNERKEY)" \ No newline at end of file + @cd $(CODE_PATH) && terraform destroy --auto-approve \ No newline at end of file