terraform show -json: Add Errored field to output for plan (#33372)

* Add Errored field to JSON output

* Fix test error message
This commit is contained in:
Andrew Hickman
2023-06-19 11:16:41 +01:00
committed by GitHub
parent 66e3c20b18
commit 49f99db1c2
5 changed files with 118 additions and 15 deletions

View File

@@ -229,7 +229,11 @@ For ease of consumption by callers, the plan representation includes a partial r
// resources with postconditions, with as much information as Terraform can
// recognize at plan time. Some objects will have status "unknown" to
// indicate that their status will only be determined after applying the plan.
"checks" <checks-representation>
"checks" <checks-representation>,
// "errored" indicates whether planning failed. An errored plan cannot be applied,
// but the actions planned before failure may help to understand the error.
"errored": false
}
```