@@ -54,6 +54,7 @@ The following message types are supported:
### Operation Results
-`resource_drift`: describes a detected change to a single resource made outside of Terraform
-`planned_change`: describes a planned change to a single resource
-`change_summary`: summary of all planned or applied changes
-`outputs`: list of all root module outputs
...
...
@@ -85,6 +86,39 @@ A machine-readable UI command output will always begin with a `version` message.
}
```
## Resource Drift
If drift is detected during planning, Terraform will emit a `resource_drift` message for each resource which has changed outside of Terraform. This message has an embedded `change` object with the following keys:
-`resource`: object describing the address of the resource to be changed; see [resource object](#resource-object) below for details
-`action`: the action planned to be taken for the resource. Values: `update`, `delete`.
This message does not include details about the exact changes which caused the change to be planned. That information is available in [the JSON plan output](./json-format.html).
At the end of a plan or before an apply, Terraform will emit a `planned_change` message for each resource which has changes to apply. This message has an embedded `change` object with the following keys: