diff options
| author | EuAndreh <eu@euandre.org> | 2021-01-15 11:51:57 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-01-15 11:51:57 -0300 |
| commit | b2113534e84fff16be0f6db57f6d6153aa4969a0 (patch) | |
| tree | 46e8f60a95e57bd4586c22c2ee197a276df89d0b | |
| parent | pinned-channels.scm: Add euandreh channel (diff) | |
| download | toph-b2113534e84fff16be0f6db57f6d6153aa4969a0.tar.gz toph-b2113534e84fff16be0f6db57f6d6153aa4969a0.tar.xz | |
terraform-apply.sh: Move to POSIX sh
| -rwxr-xr-x | terraform-apply.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/terraform-apply.sh b/terraform-apply.sh index 9a9d577..7d0725e 100755 --- a/terraform-apply.sh +++ b/terraform-apply.sh @@ -1,6 +1,4 @@ -#!/usr/bin/env bash -set -Eeuo pipefail -cd "$(dirname "${BASH_SOURCE[0]}")" +#!/bin/sh -eu TF_VAR_vultr_api_key="$(cat ./secrets/terraform/vultr-api-key.txt)" export TF_VAR_vultr_api_key @@ -9,6 +7,7 @@ rm -rf .terraform/ terraform init PLAN_FILE="./secrets/terraform/plan-files/$(date -Iseconds).tfplan" terraform plan -out="$PLAN_FILE" +printf "Is the above Terraform plan acceptable? Press CTRL+c to cancel." # shellcheck disable=2162 -read -p "Is the above Terraform plan acceptable? Press CTRL+c to cancel." +read terraform apply "$PLAN_FILE" |
