terraform/internal/command/testdata/show-json/requires-replace/output.json

90 lines
2.7 KiB
JSON

{
"format_version": "0.1",
"planned_values": {
"root_module": {
"resources": [
{
"address": "test_instance.test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"provider_name": "registry.terraform.io/hashicorp/test",
"schema_version": 0,
"values": {
"ami": "force-replace"
}
}
]
}
},
"resource_changes": [
{
"address": "test_instance.test",
"mode": "managed",
"type": "test_instance",
"provider_name": "registry.terraform.io/hashicorp/test",
"name": "test",
"change": {
"actions": [
"delete",
"create"
],
"before": {
"ami": "bar",
"id": "placeholder"
},
"after": {
"ami": "force-replace"
},
"after_unknown": {
"id": true
},
"after_sensitive": {},
"before_sensitive": {},
"replace_paths": [["ami"]]
},
"action_reason": "replace_because_cannot_update"
}
],
"prior_state": {
"format_version": "0.1",
"values": {
"root_module": {
"resources": [
{
"address": "test_instance.test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"schema_version": 0,
"provider_name": "registry.terraform.io/hashicorp/test",
"values": {
"ami": "bar",
"id": "placeholder"
}
}
]
}
}
},
"configuration": {
"root_module": {
"resources": [
{
"address": "test_instance.test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"provider_config_key": "test",
"schema_version": 0,
"expressions": {
"ami": {
"constant_value": "force-replace"
}
}
}
]
}
}
}