Removed requiring Hetzner API key in makefile
This commit is contained in:
parent
4488cf2f55
commit
7ce67eb6e0
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -1,16 +1,16 @@
|
||||||
CODE_PATH ?= .
|
CODE_PATH ?= .
|
||||||
|
|
||||||
init:
|
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
|
plan: init validate
|
||||||
@cd $(CODE_PATH) && terraform plan -var="hcloud_token=$(HETZNERKEY)"
|
@cd $(CODE_PATH) && terraform plan
|
||||||
|
|
||||||
apply: init validate
|
apply: init validate
|
||||||
@cd $(CODE_PATH) && terraform apply --auto-approve -var="hcloud_token=$(HETZNERKEY)"
|
@cd $(CODE_PATH) && terraform apply --auto-approve
|
||||||
|
|
||||||
refresh: init validate
|
refresh: init validate
|
||||||
@cd $(CODE_PATH) && terraform refresh -var="hcloud_token=$(HETZNERKEY)"
|
@cd $(CODE_PATH) && terraform refresh
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
@cd $(CODE_PATH) && terraform fmt -check -recursive
|
@cd $(CODE_PATH) && terraform fmt -check -recursive
|
||||||
|
@ -22,4 +22,4 @@ output: init
|
||||||
@cd $(CODE_PATH) && terraform output
|
@cd $(CODE_PATH) && terraform output
|
||||||
|
|
||||||
destroy: init validate
|
destroy: init validate
|
||||||
@cd $(CODE_PATH) && terraform destroy --auto-approve -var="hcloud_token=$(HETZNERKEY)"
|
@cd $(CODE_PATH) && terraform destroy --auto-approve
|
Loading…
Reference in a new issue