mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
13 lines
188 B
Terraform
13 lines
188 B
Terraform
|
resource "aws_instance" "foo" {
|
||
|
num = "2"
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
foo = "bar"
|
||
|
count = 3
|
||
|
}
|
||
|
|
||
|
output "foo_num" {
|
||
|
value = ["${join(",", aws_instance.bar.*.foo)}"]
|
||
|
}
|