blob: 8cb38473e163b59d0322e338600e57c5edebdf78 [file] [log] [blame]
variable "instance_count" {}
resource "aws_instance" "one" {
count = var.instance_count
}
locals {
one_id = element(concat(aws_instance.one.*.id, [""]), 0)
}
resource "aws_instance" "two" {
value = local.one_id
}