Files
opentf/terraform/testdata/plan-modules-expand/main.tf
James Bardin 04a117b2a1 module expansion test
simplify the test a bit and add a few more combinations to the config
2020-03-25 17:03:06 -04:00

31 lines
361 B
HCL

locals {
val = 2
bar = "baz"
m = {
"a" = "b"
}
}
variable "myvar" {
default = "baz"
}
module "count_child" {
count = local.val
foo = 2
bar = var.myvar
source = "./child"
}
module "for_each_child" {
for_each = aws_instance.foo
foo = 2
bar = var.myvar
source = "./child"
}
resource "aws_instance" "foo" {
for_each = local.m
}