terraform/internal/command/testdata/show-json/module-depends-on/output.json
Daniel Banck b6804e2edd Use configuration values for jsonconfig
Instead of outputting the raw values from the ModuleCall, we're now
using the evaluated values from the Config. This should keep the JSON
output unchanged, we just need to make sure to persist the values in
`Config` when loading the configuration.
2026-03-04 11:45:59 +01:00

87 lines
2.5 KiB
JSON

{
"format_version": "1.0",
"terraform_version": "0.13.1-dev",
"applyable": true,
"complete": true,
"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": "foo-bar"
},
"sensitive_values": {}
}
]
}
},
"resource_changes": [
{
"address": "test_instance.test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"provider_name": "registry.terraform.io/hashicorp/test",
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"ami": "foo-bar"
},
"after_unknown": {
"id": true
},
"after_sensitive": {},
"before_sensitive": false
}
}
],
"configuration": {
"provider_config": {
"test": {
"name": "test",
"full_name": "registry.terraform.io/hashicorp/test"
}
},
"root_module": {
"resources": [
{
"address": "test_instance.test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"provider_config_key": "test",
"expressions": {
"ami": {
"constant_value": "foo-bar"
}
},
"schema_version": 0
}
],
"module_calls": {
"foo": {
"depends_on": [
"test_instance.test"
],
"source": "./foo",
"module": {
"variables": {
"test_var": {
"default": "foo-var"
}
}
}
}
}
}
}
}