opentofu/terraform/test-fixtures/graph-builder-apply-module-destroy/main.tf
Mitchell Hashimoto 817a593280
terraform: destroy edges should take into account module variables
Fixes #10729

Destruction ordering wasn't taking into account ordering implied through
variables across module boundaries.

This is because to build the destruction ordering we create a
non-destruction graph to determine the _creation_ ordering (to properly
flip edges). This creation graph we create wasn't including module
variables. This PR adds that transform to the graph.
2016-12-14 21:48:09 -08:00

12 lines
171 B
HCL

variable "input" { default = "value" }
module "A" {
source = "./A"
input = "${var.input}"
}
module "B" {
source = "./A"
input = "${module.A.output}"
}