1
0
Fork 0
This commit is contained in:
Cedric Girard 2020-05-13 12:35:51 +02:00
parent c53be9dae6
commit fcac3117d1
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4

View file

@ -11,8 +11,20 @@ variable "user_list" {
]
}
variable "user_list2" {
type = list
default = [
"cedric-user4",
"cedric-user5"
]
}
resource "aws_iam_user" "user1" {
name = element(var.user_list,count.index)
count = length(var.user_list)
}
resource "aws_iam_user" "user2" {
for_each = toset(var.user_list2)
name = each.value
}