From ee744e1c1571ad0aea830f6fa7f34147dd598e36 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 2 Dec 2022 17:17:17 +0200 Subject: [PATCH] Init first in the tfp alias. Init the module without the backend (in case providers or modules were changed or added) before creating a Terraform plan. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 2f6ea11..c373144 100644 --- a/.bashrc +++ b/.bashrc @@ -167,7 +167,7 @@ alias sudo="sudo " alias sudome="sudome " alias tfa='tf apply tfplan' alias tfaa='tf apply -auto-approve' -alias tfp='tf plan -out tfplan' +alias tfp='tf init -backend=false && tf plan -out tfplan' alias tfvf='tf init -backend=false && tf validate && tf fmt -diff' alias todo="vim \$HOME/Documents/TODO.yml" # shellcheck disable=SC2142 -- GitLab