mirror of https://github.com/hashicorp/terraform
parent
0c5430f88d
commit
54e32652f7
@ -0,0 +1,3 @@
|
||||
variable "test_var" {
|
||||
default = "foo-var"
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
module "foo" {
|
||||
source = "./foo"
|
||||
|
||||
depends_on = [
|
||||
test_instance.test
|
||||
]
|
||||
}
|
||||
|
||||
resource "test_instance" "test" {
|
||||
ami = "foo-bar"
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
{
|
||||
"format_version": "0.1",
|
||||
"terraform_version": "0.13.1-dev",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue