terraform/command/jsonplan
Kristin Laemmert b9f114aa25
command/show (json): marshal the state snapshot included with the plan file (#21597)
* command/show: marshal the state snapshot from the planfile

The planfile contains a state snapshot with certain resources updated
(outputs and datasources). Previously `terraform show -json PLANFILE`
was using the current state instead of the state inside the plan as
intended.

This caused an issue when the state included a terraform_remote_state
datasource. The datasource's state gets refreshed - and therefore
upgraded to the current state version - during plan, but that won't
persist to state until apply.

* update comment to reflect new return
2019-06-05 07:29:02 -04:00
..
doc.go
module.go command/jsonplan: sort resources by address (#20113) 2019-01-25 09:17:40 -08:00
plan.go command/show (json): marshal the state snapshot included with the plan file (#21597) 2019-06-05 07:29:02 -04:00
plan_test.go command/jsonplan: Don't panic with mixtures of known/unknown/empty 2019-05-28 19:33:21 -07:00
resource.go command/show: add provider name to resource changes (#20711) 2019-03-15 13:20:43 -07:00
values.go command/show: fixing bugs in modulecalls (#20513) 2019-03-01 13:59:12 -08:00
values_test.go command/show (plan -json): fix panic (#21541) 2019-06-03 07:14:23 -05:00