ID

The random_id resource allows the creation of random IDs.

resource "random_id" "id" {
    byte_length = 4
}

output "id_base64" {
    value = resource.random_id.meta.id.base64
}

output "id_hex" {
    value = resource.random_id.meta.id.hex
}

output "id_dec" {
    value = resource.random_id.meta.id.dec
}

Last updated