terraform/command/test-fixtures/show-json/modules/output.json

199 lines
6.4 KiB
JSON

{
"format_version": "0.1",
"planned_values": {
"outputs": {
"test": {
"sensitive": false,
"value": "baz"
}
},
"root_module": {
"child_modules": [
{
"resources": [
{
"address": "module.module_test.test_instance.test[0]",
"mode": "managed",
"type": "test_instance",
"name": "test",
"index": 0,
"provider_name": "test",
"schema_version": 0,
"values": {
"ami": "baz"
}
},
{
"address": "module.module_test.test_instance.test[1]",
"mode": "managed",
"type": "test_instance",
"name": "test",
"index": 1,
"provider_name": "test",
"schema_version": 0,
"values": {
"ami": "baz"
}
},
{
"address": "module.module_test.test_instance.test[2]",
"mode": "managed",
"type": "test_instance",
"name": "test",
"index": 2,
"provider_name": "test",
"schema_version": 0,
"values": {
"ami": "baz"
}
}
],
"address": "module.module_test"
}
]
}
},
"resource_changes": [
{
"address": "module.module_test.test_instance.test[0]",
"module_address": "module.module_test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"index": 0,
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"ami": "baz"
},
"after_unknown": {
"ami": false,
"id": true
}
}
},
{
"address": "module.module_test.test_instance.test[1]",
"module_address": "module.module_test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"index": 1,
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"ami": "baz"
},
"after_unknown": {
"ami": false,
"id": true
}
}
},
{
"address": "module.module_test.test_instance.test[2]",
"module_address": "module.module_test",
"mode": "managed",
"type": "test_instance",
"name": "test",
"index": 2,
"change": {
"actions": [
"create"
],
"before": null,
"after": {
"ami": "baz"
},
"after_unknown": {
"ami": false,
"id": true
}
}
}
],
"output_changes": {
"test": {
"actions": [
"create"
],
"before": null,
"after": "baz",
"after_unknown": false
}
},
"configuration": {
"root_module": {
"outputs": {
"test": {
"expression": {
"references": [
"module.module_test.test"
]
},
"depends_on": [
"module.module_test"
]
}
},
"module_calls": {
"module_test": {
"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",
"provider_config_key": "module_test:test",
"expressions": {
"ami": {
"references": [
"var.test_var"
]
}
},
"schema_version": 0,
"count_expression": {
"constant_value": 3
}
}
],
"variables": {
"test_var": {
"default": "bar"
}
}
}
}
}
},
"provider_config": {
"module_test:test": {
"module_address": "module_test",
"name": "test"
}
}
}
}