resource "aws_instance" "web" {
...
count = 3
provisioner "local-exec" {
command = "echo ${element(aws_instance.web.*.private_ip, count.index)} >> private_ips.txt"
}
}* aws_instance.web: connection info cannot contain splat variable referencing itself
--
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To post to this group, send email to terrafo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/6534f14a-6fb5-4813-93de-7459ae4f1dc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/df7d21ad-5c69-46a2-b7c0-f77f1fe571f1%40googlegroups.com.