mirror of https://github.com/hashicorp/terraform
Merge pull request #1534 from hashicorp/b-crash-on-output-interpolate
core: don't crash when count.index is used in the wrong contextpull/1538/head
commit
43231b56d2
@ -0,0 +1,11 @@
|
||||
resource "aws_instance" "foo" {
|
||||
}
|
||||
|
||||
output "no_count_in_output" {
|
||||
value = "${count.index}"
|
||||
}
|
||||
|
||||
module "no_count_in_module" {
|
||||
source = "./child"
|
||||
somevar = "${count.index}"
|
||||
}
|
||||
Loading…
Reference in new issue