terraform/internal/command/testdata/show-json
Alisdair McDiarmid 78c4a8c461 json-output: Previous address for resource changes
Configuration-driven moves are represented in the plan file by setting
the resource's `PrevRunAddr` to a different value than its `Addr`. For
JSON plan output, we here add a new field to resource changes,
`previous_address`, which is present and non-empty only if the resource
is planned to be moved.

Like the CLI UI, refresh-only plans will include move-only changes in
the resource drift JSON output. In normal plan mode, these are elided to
avoid redundancy with planned changes.
2021-09-20 15:25:23 -04:00
..
basic-create Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
basic-delete Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
basic-update Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
drift cli: Refactor resource drift rendering 2021-09-16 15:22:37 -04:00
module-depends-on Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
modules Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
moved json-output: Previous address for resource changes 2021-09-20 15:25:23 -04:00
moved-drift json-output: Previous address for resource changes 2021-09-20 15:25:23 -04:00
multi-resource-update json-output: Previous address for resource changes 2021-09-20 15:25:23 -04:00
nested-module-error Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
nested-modules Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
provider-version Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
provider-version-no-config Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
requires-replace Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00
sensitive-values Revert "json-output: Release format version 1.0" 2021-09-09 11:25:35 -04:00