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

Ability to persist plan stdout to file #97

Open
via-justa opened this issue May 31, 2023 · 0 comments
Open

Ability to persist plan stdout to file #97

via-justa opened this issue May 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@via-justa
Copy link

Is your feature request related to a problem? Please describe.
We're running the pipelines in CircleCI and would like to get the plan output as test we can post as a GitHub comment for reviewers to check

Describe the solution you'd like
When running the plan job, the output (stdout) will be saved to file that then can be persisted and used in another job to be pushed to GitHub as a comment.

Optionally adding that functionality to other jobs like verify can be useful to catch errors

Describe alternatives you've considered
At the moment we're using in-house orb that does exactly that but we prefer to reduce the amount of orbs we maintain to a minimum and have this functionality available in this orb

Not the greatest implementation but working example

(terraform plan -no-color -compact-warnings -out=plan.out \
     -lock=<< parameters.lock-state >>  << parameters.terraform-extra-args >> | tee plan-stdout.txt) 3>&1 1>&2 2>&3 | tee error.txt

Additional context
Add any other context about the feature request here.

@via-justa via-justa added the enhancement New feature or request label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant