mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
10 lines
168 B
Terraform
10 lines
168 B
Terraform
|
resource "aws_instance" "foo" {
|
||
|
count = 2
|
||
|
compute = "ip.#"
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
count = 1
|
||
|
foo = "${aws_instance.foo.*.ip[count.index]}"
|
||
|
}
|