count vs for_each
resource "aws_iam_user" "dev" {
count = length(var.names)
name = var.names[count.index]
}
var.names is ["alice", "bob", "carol"]. You remove "alice" from the list. What does the plan show, and how do you avoid it?
Choose one answer