opentofu/config/test-fixtures/validate-count-bad-context/main.tf
Paul Hinze 975a96f271 core: protect against count.index in modules
Modules should get a validation error just like outputs do.

refs #1528
2015-04-15 10:41:56 -05:00

12 lines
177 B
HCL

resource "aws_instance" "foo" {
}
output "no_count_in_output" {
value = "${count.index}"
}
module "no_count_in_module" {
source = "./child"
somevar = "${count.index}"
}