mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-23 23:22:57 -06:00
11 lines
185 B
Terraform
11 lines
185 B
Terraform
|
variable "count" {}
|
||
|
|
||
|
resource "aws_instance" "foo" {
|
||
|
count = "${var.count}"
|
||
|
value = "foo"
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
value = "${join(",", aws_instance.foo.*.id)}"
|
||
|
}
|