From 100ab568e3aeb512e86fd1155a73454d22e24895 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Aug 2020 12:15:49 -0300 Subject: Migration: Remove Ansible and Docker code, move only to NixOS --- terraform-update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 terraform-update.sh (limited to 'terraform-update.sh') diff --git a/terraform-update.sh b/terraform-update.sh new file mode 100755 index 0000000..436d7a1 --- /dev/null +++ b/terraform-update.sh @@ -0,0 +1,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}" -- cgit v1.2.3