2019-02-19 11:12:33 -05:00
|
|
|
{
|
2021-09-01 11:17:13 -04:00
|
|
|
"format_version": "1.0",
|
2019-02-19 11:12:33 -05:00
|
|
|
"planned_values": {
|
|
|
|
|
"outputs": {
|
|
|
|
|
"test": {
|
|
|
|
|
"sensitive": false,
|
json-output: Add output type to JSON format
Previously the supported JSON plan and state formats included only
serialized output values, which was a lossy serialization of the
Terraform type system. This commit adds a type field in the usual cty
JSON format, which allows reconstitution of the original value.
For example, previously a list(string) and a set(string) containing the
same values were indistinguishable. This change serializes these as
follows:
{
"value": ["a","b","c"],
"type": ["list","string"]
}
and:
{
"value": ["a","b","c"],
"type": ["set","string"]
}
2022-04-27 13:08:43 -04:00
|
|
|
"type": "string",
|
2019-02-19 11:12:33 -05:00
|
|
|
"value": "baz"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"root_module": {
|
|
|
|
|
"child_modules": [
|
|
|
|
|
{
|
|
|
|
|
"resources": [
|
|
|
|
|
{
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_bar.test_instance.test",
|
|
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-03-01 16:59:12 -05:00
|
|
|
"schema_version": 0,
|
|
|
|
|
"values": {
|
|
|
|
|
"ami": "bar-var"
|
2021-06-14 09:19:13 -04:00
|
|
|
},
|
|
|
|
|
"sensitive_values": {}
|
2019-03-01 16:59:12 -05:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"address": "module.module_test_bar"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"resources": [
|
|
|
|
|
{
|
|
|
|
|
"address": "module.module_test_foo.test_instance.test[0]",
|
2019-02-19 11:12:33 -05:00
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
|
|
|
|
"index": 0,
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"schema_version": 0,
|
|
|
|
|
"values": {
|
|
|
|
|
"ami": "baz"
|
2021-06-14 09:19:13 -04:00
|
|
|
},
|
|
|
|
|
"sensitive_values": {}
|
2019-02-19 11:12:33 -05:00
|
|
|
},
|
|
|
|
|
{
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_foo.test_instance.test[1]",
|
2019-02-19 11:12:33 -05:00
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
|
|
|
|
"index": 1,
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"schema_version": 0,
|
|
|
|
|
"values": {
|
|
|
|
|
"ami": "baz"
|
2021-06-14 09:19:13 -04:00
|
|
|
},
|
|
|
|
|
"sensitive_values": {}
|
2019-02-19 11:12:33 -05:00
|
|
|
},
|
|
|
|
|
{
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_foo.test_instance.test[2]",
|
2019-02-19 11:12:33 -05:00
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
|
|
|
|
"index": 2,
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"schema_version": 0,
|
|
|
|
|
"values": {
|
|
|
|
|
"ami": "baz"
|
2021-06-14 09:19:13 -04:00
|
|
|
},
|
|
|
|
|
"sensitive_values": {}
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
],
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_foo"
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-09-21 14:39:25 -04:00
|
|
|
"prior_state": {
|
2021-09-01 11:17:13 -04:00
|
|
|
"format_version": "1.0",
|
2020-09-21 14:39:25 -04:00
|
|
|
"values": {
|
|
|
|
|
"outputs": {
|
|
|
|
|
"test": {
|
|
|
|
|
"sensitive": false,
|
json-output: Add output type to JSON format
Previously the supported JSON plan and state formats included only
serialized output values, which was a lossy serialization of the
Terraform type system. This commit adds a type field in the usual cty
JSON format, which allows reconstitution of the original value.
For example, previously a list(string) and a set(string) containing the
same values were indistinguishable. This change serializes these as
follows:
{
"value": ["a","b","c"],
"type": ["list","string"]
}
and:
{
"value": ["a","b","c"],
"type": ["set","string"]
}
2022-04-27 13:08:43 -04:00
|
|
|
"type": "string",
|
2020-09-21 14:39:25 -04:00
|
|
|
"value": "baz"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"root_module": {}
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-02-19 11:12:33 -05:00
|
|
|
"resource_changes": [
|
|
|
|
|
{
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_bar.test_instance.test",
|
|
|
|
|
"module_address": "module.module_test_bar",
|
|
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-03-01 16:59:12 -05:00
|
|
|
"change": {
|
|
|
|
|
"actions": [
|
|
|
|
|
"create"
|
|
|
|
|
],
|
|
|
|
|
"before": null,
|
|
|
|
|
"after": {
|
|
|
|
|
"ami": "bar-var"
|
|
|
|
|
},
|
|
|
|
|
"after_unknown": {
|
|
|
|
|
"id": true
|
2021-03-25 11:41:49 -04:00
|
|
|
},
|
|
|
|
|
"after_sensitive": {},
|
|
|
|
|
"before_sensitive": false
|
2019-03-01 16:59:12 -05:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"address": "module.module_test_foo.test_instance.test[0]",
|
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-19 11:12:33 -05:00
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"name": "test",
|
|
|
|
|
"index": 0,
|
|
|
|
|
"change": {
|
|
|
|
|
"actions": [
|
|
|
|
|
"create"
|
|
|
|
|
],
|
|
|
|
|
"before": null,
|
|
|
|
|
"after": {
|
|
|
|
|
"ami": "baz"
|
|
|
|
|
},
|
|
|
|
|
"after_unknown": {
|
|
|
|
|
"id": true
|
2021-03-25 11:41:49 -04:00
|
|
|
},
|
|
|
|
|
"after_sensitive": {},
|
|
|
|
|
"before_sensitive": false
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_foo.test_instance.test[1]",
|
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-19 11:12:33 -05:00
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"name": "test",
|
|
|
|
|
"index": 1,
|
|
|
|
|
"change": {
|
|
|
|
|
"actions": [
|
|
|
|
|
"create"
|
|
|
|
|
],
|
|
|
|
|
"before": null,
|
|
|
|
|
"after": {
|
|
|
|
|
"ami": "baz"
|
|
|
|
|
},
|
|
|
|
|
"after_unknown": {
|
|
|
|
|
"id": true
|
2021-03-25 11:41:49 -04:00
|
|
|
},
|
|
|
|
|
"after_sensitive": {},
|
|
|
|
|
"before_sensitive": false
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-03-01 16:59:12 -05:00
|
|
|
"address": "module.module_test_foo.test_instance.test[2]",
|
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-19 11:12:33 -05:00
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
2023-12-11 15:10:03 -05:00
|
|
|
"provider_name": "registry.opentofu.org/hashicorp/test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"name": "test",
|
|
|
|
|
"index": 2,
|
|
|
|
|
"change": {
|
|
|
|
|
"actions": [
|
|
|
|
|
"create"
|
|
|
|
|
],
|
|
|
|
|
"before": null,
|
|
|
|
|
"after": {
|
|
|
|
|
"ami": "baz"
|
|
|
|
|
},
|
|
|
|
|
"after_unknown": {
|
|
|
|
|
"id": true
|
2021-03-25 11:41:49 -04:00
|
|
|
},
|
|
|
|
|
"after_sensitive": {},
|
|
|
|
|
"before_sensitive": false
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"output_changes": {
|
|
|
|
|
"test": {
|
|
|
|
|
"actions": [
|
|
|
|
|
"create"
|
|
|
|
|
],
|
|
|
|
|
"before": null,
|
|
|
|
|
"after": "baz",
|
2021-03-26 19:21:40 -04:00
|
|
|
"after_unknown": false,
|
|
|
|
|
"before_sensitive": false,
|
|
|
|
|
"after_sensitive": false
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"configuration": {
|
|
|
|
|
"root_module": {
|
|
|
|
|
"outputs": {
|
|
|
|
|
"test": {
|
|
|
|
|
"expression": {
|
|
|
|
|
"references": [
|
2021-06-14 09:22:22 -04:00
|
|
|
"module.module_test_foo.test",
|
|
|
|
|
"module.module_test_foo"
|
2019-02-19 11:12:33 -05:00
|
|
|
]
|
2019-02-19 19:31:10 -05:00
|
|
|
},
|
|
|
|
|
"depends_on": [
|
2019-03-01 16:59:12 -05:00
|
|
|
"module.module_test_foo"
|
2019-02-19 19:31:10 -05:00
|
|
|
]
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"module_calls": {
|
2019-03-01 16:59:12 -05:00
|
|
|
"module_test_bar": {
|
|
|
|
|
"source": "./bar",
|
|
|
|
|
"module": {
|
|
|
|
|
"outputs": {
|
|
|
|
|
"test": {
|
|
|
|
|
"expression": {
|
|
|
|
|
"references": [
|
|
|
|
|
"var.test_var"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"resources": [
|
|
|
|
|
{
|
|
|
|
|
"address": "test_instance.test",
|
|
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
2021-12-10 12:48:32 -05:00
|
|
|
"provider_config_key": "module.module_test_bar:test",
|
2019-03-01 16:59:12 -05:00
|
|
|
"expressions": {
|
|
|
|
|
"ami": {
|
|
|
|
|
"references": [
|
|
|
|
|
"var.test_var"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"schema_version": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"variables": {
|
|
|
|
|
"test_var": {
|
|
|
|
|
"default": "bar-var"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"module_test_foo": {
|
2019-02-19 11:12:33 -05:00
|
|
|
"source": "./foo",
|
|
|
|
|
"expressions": {
|
|
|
|
|
"test_var": {
|
|
|
|
|
"constant_value": "baz"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"module": {
|
|
|
|
|
"outputs": {
|
|
|
|
|
"test": {
|
|
|
|
|
"expression": {
|
|
|
|
|
"references": [
|
|
|
|
|
"var.test_var"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"resources": [
|
|
|
|
|
{
|
|
|
|
|
"address": "test_instance.test",
|
|
|
|
|
"mode": "managed",
|
|
|
|
|
"type": "test_instance",
|
|
|
|
|
"name": "test",
|
2021-12-10 12:48:32 -05:00
|
|
|
"provider_config_key": "module.module_test_foo:test",
|
2019-02-19 11:12:33 -05:00
|
|
|
"expressions": {
|
|
|
|
|
"ami": {
|
|
|
|
|
"references": [
|
|
|
|
|
"var.test_var"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"schema_version": 0,
|
|
|
|
|
"count_expression": {
|
|
|
|
|
"constant_value": 3
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"variables": {
|
|
|
|
|
"test_var": {
|
2019-03-01 16:59:12 -05:00
|
|
|
"default": "foo-var"
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-02-20 17:27:49 -05:00
|
|
|
},
|
|
|
|
|
"provider_config": {
|
2020-02-24 17:42:32 -05:00
|
|
|
"module.module_test_foo:test": {
|
|
|
|
|
"module_address": "module.module_test_foo",
|
2021-12-10 12:48:32 -05:00
|
|
|
"name": "test",
|
2023-12-11 15:10:03 -05:00
|
|
|
"full_name": "registry.opentofu.org/hashicorp/test"
|
2022-02-18 11:15:58 -05:00
|
|
|
},
|
|
|
|
|
"module.module_test_bar:test": {
|
|
|
|
|
"module_address": "module.module_test_bar",
|
|
|
|
|
"name": "test",
|
2023-12-11 15:10:03 -05:00
|
|
|
"full_name": "registry.opentofu.org/hashicorp/test"
|
2019-02-20 17:27:49 -05:00
|
|
|
}
|
2019-02-19 11:12:33 -05:00
|
|
|
}
|
|
|
|
|
}
|
2020-04-02 12:58:44 -04:00
|
|
|
}
|