homelab/terraform/exportTFsecret.sh
2023-11-04 21:33:51 +01:00

4 lines
237 B
Bash
Executable File

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`
export TF_VAR_hcloud_token=`vault kv get -field=hcloud_token secrets/hetzner`