diff options
| author | EuAndreh <eu@euandre.org> | 2020-08-12 22:41:34 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-08-12 22:41:34 -0300 |
| commit | d4e533667a36df94272f55ab428b2a73356be88a (patch) | |
| tree | 9ed1bfbe55f69726fc7c8e5bd3656aabeb174ba9 /terraform-apply.sh | |
| parent | vps-configuration.env.nix: Finish working Nextcloud installation (diff) | |
| download | server-d4e533667a36df94272f55ab428b2a73356be88a.tar.gz server-d4e533667a36df94272f55ab428b2a73356be88a.tar.xz | |
Rename: nixos-update.sh->nixos-switch.sh, terraform-update.sh->terraform-apply.sh
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}" |
