mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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.
10 lines
152 B
HCL
10 lines
152 B
HCL
variable "mod_count_root" {
|
|
type = "string"
|
|
default = "3"
|
|
}
|
|
|
|
module "child" {
|
|
source = "./child"
|
|
mod_count_child = "${var.mod_count_root}"
|
|
}
|