mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
12 lines
206 B
Terraform
12 lines
206 B
Terraform
|
resource "aws_instance" "foo" {
|
||
|
count = 2
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
count = "${length(aws_instance.foo.*.id)}"
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "baz" {
|
||
|
count = "${length(aws_instance.bar.*.id)}"
|
||
|
}
|