Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terragrunt out to environment variable GitLab CI/CD

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
like image 565
TravelingLex Avatar asked Dec 19 '25 04:12

TravelingLex


1 Answers

I decided to just create files instead of piping out to a variable and it works.

like image 115
TravelingLex Avatar answered Dec 24 '25 10:12

TravelingLex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!