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-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_bar.test_instance.test",
|
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-03-01 22:59:12 +01:00
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "bar-var"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"address": "module.module_test_bar"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"resources": [
|
|
|
|
{
|
|
|
|
"address": "module.module_test_foo.test_instance.test[0]",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 0,
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "baz"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_foo.test_instance.test[1]",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 1,
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "baz"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_foo.test_instance.test[2]",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
|
|
|
"index": 2,
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"schema_version": 0,
|
|
|
|
"values": {
|
|
|
|
"ami": "baz"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2019-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_foo"
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2020-09-21 20:39:25 +02:00
|
|
|
"prior_state": {
|
|
|
|
"format_version": "0.1",
|
|
|
|
"values": {
|
|
|
|
"outputs": {
|
|
|
|
"test": {
|
|
|
|
"sensitive": false,
|
|
|
|
"value": "baz"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"root_module": {}
|
|
|
|
}
|
|
|
|
},
|
2019-02-19 17:12:33 +01:00
|
|
|
"resource_changes": [
|
|
|
|
{
|
2019-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_bar.test_instance.test",
|
|
|
|
"module_address": "module.module_test_bar",
|
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
|
|
|
"name": "test",
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-03-01 22:59:12 +01:00
|
|
|
"change": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": {
|
|
|
|
"ami": "bar-var"
|
|
|
|
},
|
|
|
|
"after_unknown": {
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"address": "module.module_test_foo.test_instance.test[0]",
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"name": "test",
|
|
|
|
"index": 0,
|
|
|
|
"change": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": {
|
|
|
|
"ami": "baz"
|
|
|
|
},
|
|
|
|
"after_unknown": {
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_foo.test_instance.test[1]",
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"name": "test",
|
|
|
|
"index": 1,
|
|
|
|
"change": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": {
|
|
|
|
"ami": "baz"
|
|
|
|
},
|
|
|
|
"after_unknown": {
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-03-01 22:59:12 +01:00
|
|
|
"address": "module.module_test_foo.test_instance.test[2]",
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-19 17:12:33 +01:00
|
|
|
"mode": "managed",
|
|
|
|
"type": "test_instance",
|
2020-04-02 18:58:44 +02:00
|
|
|
"provider_name": "registry.terraform.io/hashicorp/test",
|
2019-02-19 17:12:33 +01:00
|
|
|
"name": "test",
|
|
|
|
"index": 2,
|
|
|
|
"change": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": {
|
|
|
|
"ami": "baz"
|
|
|
|
},
|
|
|
|
"after_unknown": {
|
|
|
|
"id": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"output_changes": {
|
|
|
|
"test": {
|
|
|
|
"actions": [
|
|
|
|
"create"
|
|
|
|
],
|
|
|
|
"before": null,
|
|
|
|
"after": "baz",
|
|
|
|
"after_unknown": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"configuration": {
|
|
|
|
"root_module": {
|
|
|
|
"outputs": {
|
|
|
|
"test": {
|
|
|
|
"expression": {
|
|
|
|
"references": [
|
2019-03-01 22:59:12 +01:00
|
|
|
"module.module_test_foo.test"
|
2019-02-19 17:12:33 +01:00
|
|
|
]
|
2019-02-20 01:31:10 +01:00
|
|
|
},
|
|
|
|
"depends_on": [
|
2019-03-01 22:59:12 +01:00
|
|
|
"module.module_test_foo"
|
2019-02-20 01:31:10 +01:00
|
|
|
]
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"module_calls": {
|
2019-03-01 22:59:12 +01: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",
|
|
|
|
"provider_config_key": "module_test_bar:test",
|
|
|
|
"expressions": {
|
|
|
|
"ami": {
|
|
|
|
"references": [
|
|
|
|
"var.test_var"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"schema_version": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"variables": {
|
|
|
|
"test_var": {
|
|
|
|
"default": "bar-var"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"module_test_foo": {
|
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-03-01 22:59:12 +01:00
|
|
|
"provider_config_key": "module_test_foo: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": {
|
2019-03-01 22:59:12 +01:00
|
|
|
"default": "foo-var"
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-20 23:27:49 +01:00
|
|
|
},
|
|
|
|
"provider_config": {
|
2020-02-24 23:42:32 +01:00
|
|
|
"module.module_test_foo:test": {
|
|
|
|
"module_address": "module.module_test_foo",
|
2019-02-20 23:27:49 +01:00
|
|
|
"name": "test"
|
|
|
|
}
|
2019-02-19 17:12:33 +01:00
|
|
|
}
|
|
|
|
}
|
2020-04-02 18:58:44 +02:00
|
|
|
}
|