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