ljfranklin / terraform-resource

A concourse resource to create infrastructure via Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Other plan output options besides .json file

thepunknerd opened this issue · comments

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

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

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.