terraform/command/jsonstate
Kristin Laemmert 7f1b0a4681
command/jsonstate: fix inconsistency with resource address (#24256)
* command/jsonstate: fix inconsistency with resource address

Resource addresses in state output were not including index for
instances created with for_each or count, while the index was appearing
in the plan output. This PR fixes that inconsistency, adds tests, and
updates the existing tests.

Fixes #24110

* add tests showing expected prior state resource addressing
* added example of show json state output with modules
2020-03-05 08:13:45 -05:00
..
doc.go command/jsonstate: marshal state into a machine readable blob o'json (#19911) 2019-01-03 12:08:03 -08:00
state.go command/jsonstate: fix inconsistency with resource address (#24256) 2020-03-05 08:13:45 -05:00
state_test.go command/jsonstate: fix inconsistency with resource address (#24256) 2020-03-05 08:13:45 -05:00