terraform/internal/command/views/json
Alisdair McDiarmid 3b33dc1105 json-output: Add output changes to plan logs
Extend the outputs JSON log message to support an `action` field (and
make the `type` and `value` fields optional). This allows us to emit a
useful output change summary as part of the plan, bringing the JSON log
output into parity with the text output.

While we do have access to the before/after values in the output
changes, attempting to wedge those into a structured log message is not
appropriate. That level of detail can be extracted from the JSON plan
output from `terraform show -json`.
2021-08-05 15:32:26 -04:00
..
testdata/diagnostic command/views/json: Never generate invalid diagnostic snippet offsets 2021-06-28 13:42:28 -07:00
change.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
change_summary.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
diagnostic.go command/views/json: Never generate invalid diagnostic snippet offsets 2021-06-28 13:42:28 -07:00
diagnostic_test.go command/views/json: Never generate invalid diagnostic snippet offsets 2021-06-28 13:42:28 -07:00
hook.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
message_types.go json-output: Add resource drift to machine readable UI 2021-06-30 14:57:55 -04:00
output.go json-output: Add output changes to plan logs 2021-08-05 15:32:26 -04:00
output_test.go json-output: Add output changes to plan logs 2021-08-05 15:32:26 -04:00
resource_addr.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00