aboutsummaryrefslogtreecommitdiff
path: root/terraform-apply.sh
diff options
context:
space:
mode:
Diffstat (limited to 'terraform-apply.sh')
-rwxr-xr-xterraform-apply.sh3
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"