homelab/terraform/exportTFsecret.sh

4 lines
237 B
Bash
Raw Normal View History

2023-11-04 20:33:51 +00:00
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`