Removed requiring Hetzner API key in makefile

This commit is contained in:
Oscar Blue 2023-07-09 16:45:21 +01:00
parent 4488cf2f55
commit 7ce67eb6e0

View file

@ -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)"
@cd $(CODE_PATH) && terraform destroy --auto-approve