opentofu/terraform/test-fixtures/apply-destroy-mod-var-and-count-nested/main.tf
Chris Marchesi 2a679edd25 core: Fix destroy on nested module vars for count
Building on b10564a, adding tweaks that allow the module var count
search to act recursively, ensuring that a sitaution where something
like var.top gets passed to module middle, as var.middle, and then to
module bottom, as var.bottom, which is then used in a resource count.
2016-05-18 13:32:56 -05:00

10 lines
152 B
HCL

variable "mod_count_root" {
type = "string"
default = "3"
}
module "child" {
source = "./child"
mod_count_child = "${var.mod_count_root}"
}