rover icon indicating copy to clipboard operation
rover copied to clipboard

[feature] visualizing the state file

Open nhomble opened this issue 3 years ago • 5 comments

Instead of just relying on diffs, would it make sense to supply a state backend directly and visualize the infra structure? I see other issues related to TF Cloud integration. I think it would be cool to visualize a workspace.

nhomble avatar Dec 09 '21 23:12 nhomble

Hi @nhomble, can you elaborate on this? Are you proposing visualizing from the state file only as opposed to the plan file?

Also, what did you mean by "I see other issues related to TF Cloud integration"?

im2nguyen avatar Dec 11 '21 06:12 im2nguyen

proposing visualizing from the state file only as opposed to the plan file

Definitely not only because I see value in visualizing the plan when reviewing a pull request, but I visualizing the state file could be a nice alternative

issues related to TF Cloud Integration

https://github.com/im2nguyen/rover/issues/34 was one I saw after a quick search

nhomble avatar Dec 11 '21 13:12 nhomble

+1 This request. I would like to generate a rudimentary arch. diagram from a state file, or have it in CI/CD.

prassanna-ravishankar avatar Jan 28 '22 15:01 prassanna-ravishankar

Oh! If this is with Terraform Cloud, there should work now:

https://github.com/im2nguyen/rover/issues/34#issuecomment-960505015

im2nguyen avatar Jan 28 '22 20:01 im2nguyen

From the linked pr, @im2nguyen, pulling the last plan would definitely help.

We would still be interested in running against the actual workspace though if we wanted to visualize the infrastructure for a more holistic review. So use cases we imagine:

  • adding as an informational step in our TFE pipeline against the plan
  • randomly review the current state from a UI

nhomble avatar Jan 31 '22 18:01 nhomble