In Terraform, how to output values from a list?
I am trying to get the output to show me the names of the IAM users being created. resource "aws_iam_user" "lb" { name = var.elb_names[count.index] count = 3 path = "/system/" } variable "elb_names" { type = list default = ["dev-lb", "qa-lb", "prod-lb"] } output "elb_names" { value = aws_iam_user.lb.name[count.index] } I expect to get… Read More In Terraform, how to output values from a list?