From 3854bb127c4fca0364339bcf53af32be87d19de4 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Fri, 26 Mar 2021 09:47:28 +0100 Subject: [PATCH] feat: enable destroy plans This solution is copied from https://github.com/runatlantis/atlantis/issues/612#issuecomment-779926329 It should now be possible to do an ``` atlantis plan -d some/dir -destroy to ``` for generating a plan that would destroy the resources. --- repos.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repos.yaml b/repos.yaml index f3aeac9..57a6851 100644 --- a/repos.yaml +++ b/repos.yaml @@ -11,7 +11,10 @@ workflows: - env: name: TERRAGRUNT_TFPATH command: 'echo "terraform${ATLANTIS_TERRAFORM_VERSION}"' - - run: terragrunt plan -no-color -out=$PLANFILE + - env: + name: DESTROY_PARAMETER + command: if [ "$COMMENT_ARGS" = '\-\d\e\s\t\r\o\y' ]; then echo "-destroy"; else echo ""; fi + - run: terragrunt plan -no-color -out=$PLANFILE $DESTROY_PARAMETER apply: steps: - env: