mirror of https://github.com/hashicorp/terraform
Merge pull request #10657 from hashicorp/b-unknown-computed-list
terraform: allow indexing into a computed list for multi-count resourcespull/10677/head
commit
8e19a8b79f
@ -0,0 +1,9 @@
|
||||
resource "aws_instance" "foo" {
|
||||
count = 2
|
||||
compute = "ip.#"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
count = 1
|
||||
foo = "${aws_instance.foo.*.ip[count.index]}"
|
||||
}
|
||||
Loading…
Reference in new issue