hashicorp / hashicorp/setup-terraform

Plan too long to be passed between steps

Open
#24 9 comments 11 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
288
Avg merge
23h 21m
Merged PRs (30d)
3

Description

[This example in the documentation](https://github.com/hashicorp/setup-terraform/blame/master/README.md#L112) often breaks down in real life. If the output from `terraform plan` is too big, it can't fit in an environment variable (which is how [the documentation shows it being accessed](https://github.com/hashicorp/setup-terraform/blame/master/README.md#L123)).

The workaround we have found is to save the plan as a file, pass the filename, and then use `terraform show -json $filename > plan.json` to get the plan value in the second step. The problem we are having with this workaround is that the wrapper script breaks STDOUT.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.