mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-11 16:42:33 -06:00
13 lines
203 B
HCL
13 lines
203 B
HCL
variable "num" {
|
|
default = 15
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
count = "${var.num}"
|
|
foo = "index-${count.index}"
|
|
}
|
|
|
|
output "should-be-11" {
|
|
value = "${element(aws_instance.bar.*.foo, 11)}"
|
|
}
|