From db67d51bea4b7d29af9073a344a965d97a9b1d9b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 11 Jun 2019 10:10:42 -0300 Subject: Run Terraform refresh when not destroying everything --- scripts/ci/deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/ci/deploy.sh') diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh index 125c910..c068e5c 100755 --- a/scripts/ci/deploy.sh +++ b/scripts/ci/deploy.sh @@ -72,7 +72,8 @@ if [[ "${DESTROY_VOLUME:-}" != "" ]]; then echo "Destroying existing infrastructure..." terraform destroy -input=false -auto-approve > ./logs/terraform-destroy.txt 2>&1 else - echo "Skipping explicit intentional destruction of existing infrastructure..." + echo 'Refreshing view on existing infrastructure...' + terraform refresh > ./logs/terraform-refresh.txt 2>&1 fi echo "Done." -- cgit v1.2.3