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

Add run step environment variable SHOWFILE #1611

Merged
merged 1 commit into from
Jun 22, 2021
Merged

Add run step environment variable SHOWFILE #1611

merged 1 commit into from
Jun 22, 2021

Conversation

mhennecke
Copy link
Contributor

Policy checks require the PLANFILE in json format. The default show workflow step defaults to terraform show. This breaks custom workflows, e.g. a terragrunt workflow.

This PR adds a SHOWFILE environment variable which is set to the expected absolute path of the json formatted PLANFILE. This allows for the following custom show command:

 - run: terragrunt show -no-color -json $PLANFILE > $SHOWFILE

fixes #1562

@mhennecke mhennecke requested a review from a team as a code owner June 1, 2021 12:57
Copy link
Contributor

@nishkrishnan nishkrishnan left a comment

Choose a reason for hiding this comment

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

👍🏽

@nishkrishnan nishkrishnan merged commit aef146f into runatlantis:master Jun 22, 2021
@mhennecke mhennecke deleted the add-run-env-var branch June 23, 2021 09:36
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.

terragrunt and policy checking not working
2 participants