diff options
Diffstat (limited to 'terraform-apply.sh')
| -rwxr-xr-x | terraform-apply.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/terraform-apply.sh b/terraform-apply.sh new file mode 100755 index 0000000..ac2b9ca --- /dev/null +++ b/terraform-apply.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash +# shellcheck shell=bash +set -Eeuo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")" + +terraform init +PLAN_FILE="./secrets/terraform/plan-files/$(date -Iseconds)" +terraform plan -out="${PLAN_FILE}" +# shellcheck disable=2162 +read -p "Is the above Terraform plan acceptable?." +terraform apply "${PLAN_FILE}" |
