mirror of https://github.com/hashicorp/terraform
Merge pull request #10745 from hashicorp/b-module-destroy-order
terraform: destroy edges should take into account module variablespull/10749/head
commit
5909244a69
@ -0,0 +1,7 @@
|
||||
variable "input" {}
|
||||
|
||||
resource "null_resource" "foo" {
|
||||
triggers { input = "${var.input}" }
|
||||
}
|
||||
|
||||
output "output" { value = "${null_resource.foo.id}" }
|
||||
@ -0,0 +1,11 @@
|
||||
variable "input" { default = "value" }
|
||||
|
||||
module "A" {
|
||||
source = "./A"
|
||||
input = "${var.input}"
|
||||
}
|
||||
|
||||
module "B" {
|
||||
source = "./A"
|
||||
input = "${module.A.output}"
|
||||
}
|
||||
Loading…
Reference in new issue