March 29, 2022 · 1 min · 39 phrases · Andrew
If it’s worthwhile to generate a random quantity or string in Terraform, then you should utilize the next:
useful resource "random_id" "myrandom" {
keepers = {
first = "${timestamp()}"
}
byte_length = 8
}
Then discuss with it as:
random_id.myrandom.hex