Right now, when you run gh tp you get this
$ gh tp
✔ Plan Created...
✔ Markdown Created...
And two files
$ ls | grep plan
plan.md
plan.out
It would be nice to have this behavior with --show being passed.
$ terraform show plan.out
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
I've been using a workflow that does a terraform plan to ensure it does what I want/need, then when I'm ready, I run gh tp after I've done "git things" to create the files and the markdown. But if a person were more confident, there could be a path of "do git things, gh tp" so a person may want to see the plan output as a part of the workflow.
** edit ** reading this again, this has the possibility of introducing a --dry-run where a person could run gh tp --dry-run and it displays the plan output and creates the markdown. Then when they're ready, run gh tp to create the PR. In this workflow, --show wouldn't necessarily need to exist, as it would be a native function of --dry-run.
Things to consider:
- Should
--show be a parameter (e.g show = true in .tp.toml)?
- Should
--dry-run be a parameter (e.g dry-run = false in .tp.toml)?
- Should either or both be an env var?
- Or just CLI args?
Right now, when you run
gh tpyou get thisAnd two files
$ ls | grep plan plan.md plan.outIt would be nice to have this behavior with
--showbeing passed.I've been using a workflow that does a
terraform planto ensure it does what I want/need, then when I'm ready, I rungh tpafter I've done "git things" to create the files and the markdown. But if a person were more confident, there could be a path of "do git things,gh tp" so a person may want to see the plan output as a part of the workflow.** edit ** reading this again, this has the possibility of introducing a
--dry-runwhere a person could rungh tp --dry-runand it displays the plan output and creates the markdown. Then when they're ready, rungh tpto create the PR. In this workflow,--showwouldn't necessarily need to exist, as it would be a native function of--dry-run.Things to consider:
--showbe a parameter (e.gshow = truein.tp.toml)?--dry-runbe a parameter (e.gdry-run = falsein.tp.toml)?