Skip to content

Commit

Permalink
feat: enable destroy plans
Browse files Browse the repository at this point in the history
This solution is copied from
runatlantis/atlantis#612 (comment)

It should now be possible to do an
```
atlantis plan -d some/dir -destroy to
```
for generating a plan that would destroy the resources.
  • Loading branch information
Johannes Wienke committed Mar 26, 2021
1 parent 649fb80 commit 3854bb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3854bb1

Please sign in to comment.