diff options
| author | EuAndreh <eu@euandre.org> | 2020-09-06 09:53:58 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-09-06 15:48:45 -0300 |
| commit | 3f1d7201bfc46ff9edaa109bc41b59908f99c23b (patch) | |
| tree | 30c89f1f19c156c044855839b62ea3eeca0a739a /terraform-apply.sh | |
| parent | nixos-switch.sh: Decouple the update of pires app from deploying the VPS (diff) | |
| download | toph-3f1d7201bfc46ff9edaa109bc41b59908f99c23b.tar.gz toph-3f1d7201bfc46ff9edaa109bc41b59908f99c23b.tar.xz | |
Refactor vps-configuration.nix: Split secrets from config and envsubst vars
Also rename thingTLD to thingDomain.
Diffstat (limited to 'terraform-apply.sh')
| -rwxr-xr-x | terraform-apply.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/terraform-apply.sh b/terraform-apply.sh index 8179b96..588e1bb 100755 --- a/terraform-apply.sh +++ b/terraform-apply.sh @@ -4,6 +4,9 @@ set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" +TF_VAR_vultr_api_key="$(cat ./secrets/terraform/vultr-api-key.txt)" +export TF_VAR_vultr_api_key + rm -rf .terraform/ terraform init PLAN_FILE="./secrets/terraform/plan-files/$(date -Iseconds).tfplan" |
