diff options
Diffstat (limited to 'scripts/ci/provision.sh')
-rwxr-xr-x | scripts/ci/provision.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/ci/provision.sh b/scripts/ci/provision.sh index 5d7b96b..e2a0c72 100755 --- a/scripts/ci/provision.sh +++ b/scripts/ci/provision.sh @@ -32,8 +32,12 @@ terraform --version terraform init echo "Done." -echo "Destroying existing infrastructure..." -terraform destroy -input=false -auto-approve +if [[ "${DESTROY_VOLUME:-}" != "" ]]; then + echo "Skipping explicit intentional destruction of existing infrastructure..." +else + echo "Destroying existing infrastructure..." + terraform destroy -input=false -auto-approve +fi echo "Done." echo "Running 'terraform plan' and storing the planfile..." |