--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
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 view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/86b38fb9-36fa-41c3-9b6a-b5a4ca6b8437%40googlegroups.com.
Hey Lowe, terraform version is 0.12.18
Any help would be appreciated.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
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 view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/1438fa1d-b87b-4fd2-b2f2-f64d7e623398%40googlegroups.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
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 view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/f8ef078a-c1d6-49c9-ac4f-0b8281d43af6%40googlegroups.com.
The aws_instance.clients[*].public_ip is a short hand for the for expression iterating over every client.--Lowe Schmidt | +46 723 867 157
On Wed, 5 Feb 2020 at 10:41, Rajeev Jaggavarapu <rajeev.j...@srijan.net> wrote:
aws_instance.clients.*.public_ip--
This is a listIf you are using .12.x you can use dynamic block.https://www.hashicorp.com/blog/hashicorp-terraform-0-12-preview-for-and-for-each/
On Tuesday, February 4, 2020 at 7:18:35 AM UTC+5:30, James Santos wrote:Hello, has anyone ever seen a solution for this use case:resource "aws_security_group" "sg_api" {ingress {from_port = 80to_port = 80protocol = "tcp"cidr_blocks = ["${formatlist("%v/32", aws_instance.clients.*.public_ip)}"]}}I saw this issue brought up before (https://github.com/hashicorp/terraform/issues/640) but haven't seen a solution for it yet.Thanks,- James
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
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 terrafo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/51c32485-4b8c-4134-8f6a-2585d130a779%40googlegroups.com.
If you have a cyclic dependency in your graph, you need to split out the resources. In this case, you can have a `aws_security_group` and multiple `aws_security_group_rule`, that way, you can create the instances, attach the security group and then create the rules for your security group.See https://www.terraform.io/docs/providers/aws/r/security_group_rule.html--Lowe Schmidt | +46 723 867 157
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/51c32485-4b8c-4134-8f6a-2585d130a779%40googlegroups.com.