memorable-id
DanielFallon/memorable-id/random
Terraform module which generates a fixed length memorable random id of the form -
Random Memorable Id Module This repo contains a Module for generating a random id that is both memorable and as long as is allowable by length constraints. This could be used, for example, to create a project id for Google Cloud. Features The output from this module can be customized in a variety of ways: - keepers can be used to force regeneration - the characters used for padding and separation can each be customized - as can the length, in words, of the memorable segment Usage Usage is exceptionally simple, please read the simple example below to understand the usage and refer to the Inputs/Outputs documentation for a more detailed description. `` hcl module "totally_rad_project_id" { # Module path source = "DanielFallon/memorable-id/random" # Maximum length of a google cloud project id
| Name | Type | Description | Default |
|---|---|---|---|
| length | number | (Required) The length of the string to generate in number of characters | required |
| separator | string | (Optional) (default "-") The character used to separate the memorable and id seg | "-" |
| memorable_length | number | (Optional) (default 2) The number of words in the memorable segment. | 2 |
| memorable_separator | string | (Optional) (default "-") The character used to separate words in the memorable s | "-" |
| keepers | map(any) | (Optional) (default {}) Arbitrary map of values that, when changed, will trigger | {} |
| id_characters | string | (Optional) (default a-z0-9) The character set used to generate the id segment, e | "abcdefghijklmnopqrstwxyz0123456789" |
memorable — The memorable segment of the generated id (without separator appended)id — The id segement of the generated id (without separator prefixed)memorable_id — The generated id of the form {memorable}{separator}{id}, e.g. silly-tiger-ph84dqd3