homelab/terraform/dns/makefile
2023-11-04 21:33:51 +01:00

13 lines
237 B
Makefile

setenv:
export TF_VAR_hetznerApiKey=`vault kv get -field=hdns_token secrets/hetzner`
export TF_VAR_powerDnsApiKey=`vault kv get -field=API_KEY secrets/nomad/pdns`
apply: setenv
terraform apply
plan: setenv
export
terraform plan