I have this resource that should generate a number that does not contain digit 0:
resource "random_string" "digits_without_zero" {
for_each = {
for user in local.new_users : user.key => user.department
}
length = 6
special = false
lower = false
upper = false
override_special = "123456789"
}
In most cases, I get a digit that does not contain digit 0 but in some cases I get 6 digit number that has digit 0. I tried with random integer
but also no luck.
Do you know a way in which i can generate a number that does not contain digit 0?