mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
12 lines
206 B
HCL
12 lines
206 B
HCL
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)}"
|
|
}
|