2019-02-19 17:12:33 +01:00
|
|
|
{
|
|
|
|
"format_version": "0.1",
|
|
|
|
"planned_values": {
|
|
|
|
"outputs": {
|
|
|
|
"test": {
|
|
|
|
"sensitive": false,
|
|
|
|
"value": "baz"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"root_module": {
|
|
|
|
"child_modules": [
|
|
|
|
{
|
|
|
|
"resources": [
|
|
|
|
{
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test.test_instance.test[0]",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 0,
|
|
|
|
"provider_name": "test",
|
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "baz"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test.test_instance.test[1]",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 1,
|
|
|
|
"provider_name": "test",
|
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "baz"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test.test_instance.test[2]",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 2,
|
|
|
|
"provider_name": "test",
|
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "baz"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test"
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"resource_changes": [
|
|
|
|
{
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test.test_instance.test[0]",
|
|
|
|
"module_address": "module.module_test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 0,
|
|
|
|
"change": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": {
|
|
|
|
"ami": "baz"
|
|
|
|
},
|
|
|
|
"after_unknown": {
|
|
|
|
"ami": false,
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test.test_instance.test[1]",
|
|
|
|
"module_address": "module.module_test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 1,
|
|
|
|
"change": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": {
|
|
|
|
"ami": "baz"
|
|
|
|
},
|
|
|
|
"after_unknown": {
|
|
|
|
"ami": false,
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-02-20 23:27:49 +01:00
|
|
|
"address": "module.module_test.test_instance.test[2]",
|
|
|
|
"module_address": "module.module_test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"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": [
|
2019-02-20 23:27:49 +01:00
|
|
|
"module.module_test.test"
|
2019-02-19 17:12:33 +01:00
|
|
|
]
|
2019-02-20 01:31:10 +01:00
|
|
|
},
|
|
|
|
"depends_on": [
|
2019-02-20 23:27:49 +01:00
|
|
|
"module.module_test"
|
2019-02-20 01:31:10 +01:00
|
|
|
]
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"module_calls": {
|
2019-02-20 23:27:49 +01:00
|
|
|
"module_test": {
|
2019-02-19 17:12:33 +01: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",
|
2019-02-20 23:27:49 +01:00
|
|
|
"provider_config_key": "module_test:test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"expressions": {
|
|
|
|
"ami": {
|
|
|
|
"references": [
|
|
|
|
"var.test_var"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"schema_version": 0,
|
|
|
|
"count_expression": {
|
|
|
|
"constant_value": 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"variables": {
|
|
|
|
"test_var": {
|
|
|
|
"default": "bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-20 23:27:49 +01:00
|
|
|
},
|
|
|
|
"provider_config": {
|
|
|
|
"module_test:test": {
|
|
|
|
"module_address": "module_test",
|
|
|
|
"name": "test"
|
|
|
|
}
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|