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

Other plan output options besides .json file #177

Open
thepunknerd opened this issue May 5, 2022 · 2 comments
Open

Other plan output options besides .json file #177

thepunknerd opened this issue May 5, 2022 · 2 comments

Comments

@thepunknerd
Copy link

thepunknerd commented May 5, 2022

Hello, I'm making a pipeline where when a merge request is made on gitlab, a terraform plan is run and the output is uploaded as a comment for the merge request. Once the merge goes through it then does another plan and apply. Currently, as it is the only output seemingly available, the comment on the merge request is the plan.json file, the problem being that the json isn't the prettiest or most readable output. I was wondering if there is a way to just get the standard output of a terraform show or a way to runterraform show with the resource, or just other advice that could work that I may not be thinking of. Just for clarity here is an example screen shot of part of the output that I am referring to:
Screen Shot 2022-05-05 at 9 00 00 AM

@pezhore
Copy link

pezhore commented May 11, 2022

This would be super useful for our deployment - have you gotten any further with it? Maybe doing something with JQ?

@ljfranklin
Copy link
Owner

Sounds reasonable to me. Added the help wanted tag to mark this as open for contribution if someone wants to take a shot at a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants