blob: 436d7a1b1e4a692a40431d7ab815c054beb2cfc6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env nix-shell
#!nix-shell -i bash
# shellcheck shell=bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
git crypt unlock
direnv allow
terraform init
PLAN_FILE="./secrets/terraform/plan-files/$(date -Iseconds)"
terraform plan -input=false -out="${PLAN_FILE}"
terraform apply -input=false "${PLAN_FILE}"
|