blob: ac2b9ca6069e59fcd977be7ba7a7b4048b289409 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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}"
|