You have the following variable defined in Terraform
variable "users" {
type = list(string)
default = ["mario", "luigi", "peach"]
}
How to use it to create users on one of the public clouds (or any other platform, infra)?
Answer
resource "aws_iam_user" "user" {
count = length(var.users)
name = var.users[count.index]
}