Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update terragrunt config example #1565

Closed
wants to merge 1 commit into from
Closed

Update terragrunt config example #1565

wants to merge 1 commit into from

Conversation

joshuawscott
Copy link

This allows passing an additional flag into the terragrunt plan command,
which would solve questions such as
#193 (comment)
that were trying to determine how to destroy with a terragrunt workflow

This allows passing an additional flag into the terragrunt plan command,
which would solve questions such as
#193 (comment)
that were trying to determine how to destroy with a terragrunt workflow
@joshuawscott joshuawscott requested a review from a team as a code owner May 7, 2021 15:14
- run: terragrunt plan -no-color -out=$PLANFILE
# The COMMENT_ARGS here allows a comment of `atlantis plan -- -destroy`
# in order to destroy a particular config.
- run: terragrunt plan -no-color -out=$PLANFILE ${COMMENT_ARGS}
Copy link

@nathanmonteleone nathanmonteleone May 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was only able to get this to work if I used eval to unescape COMMENT_ARGS:

      - run: terragrunt plan -no-color $(eval echo ${COMMENT_ARGS}) -out=${PLANFILE}

(Also suggest using ${} around PLANFILE just because it's better bash practice)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants