terraform/command/testdata/show-json
Alisdair McDiarmid a5b7394f9a command/jsonplan: Add replace_paths
The set of paths which caused a resource update to require replacement
has been stored in the plan since 0.15.0 (#28201). This commit adds a
simple JSON representation of these paths, allowing consumers of this
format to determine exactly which paths caused the resource to be
replaced.

This representation is intentionally more loosely encoded than the JSON
state serialization of paths used for sensitive attributes. Instead of a
path step being represented by an object with type and value, we use a
more-JavaScripty heterogenous array of numbers and strings. Any
practical consumer of this format will likely traverse an object tree
using the index operator, which should work more easily with this
format. It also allows easy prefix comparison for consumers which are
tracking paths.

While updating the documentation to include this new field, I noticed
that some others were missing, so added them too.
2021-05-04 16:51:51 -04:00
..
basic-create command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
basic-delete command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
basic-update command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
module-depends-on command/jsonplan: Add sensitive value mapping data 2021-03-26 19:26:10 -04:00
modules command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
multi-resource-update command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
nested-module-error fix show-json test to expect error from nested mod 2019-07-16 21:30:04 -04:00
nested-modules command/jsonplan: Add sensitive value mapping data 2021-03-26 19:26:10 -04:00
provider-version command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
provider-version-no-config command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00
requires-replace command/jsonplan: Add replace_paths 2021-05-04 16:51:51 -04:00
sensitive-values command/jsonplan: Add output change sensitivity 2021-03-26 19:26:11 -04:00