I'm trying to run a "Terragrunt plan -out=$PLAN" but it seems I'm unable to? My goal here is to output a plan then show the plan and post to a GitLab merge request.
How should I go about accomplishing this?
Here is what I have so far:
- terragrunt plan -out $PLAN
- "terragrunt show --json $PLAN | convert_report > $JSON_PLAN_FILE"
artifacts:
paths:
- $PLAN
reports:
terraform: $JSON_PLAN_FILE
only:
- merge_requests
I decided to just create files instead of piping out to a variable and it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With