memorable-id

DanielFallon/memorable-id/random

Terraform Module HCL RANDOM

Terraform module which generates a fixed length memorable random id of the form -

Install
module "memorable-id" {
source = "DanielFallon/memorable-id/random"
version = "2.0.0"
}
plain text: /constructs/tfmod-danielfallon-memorable-id-random/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (6)
NameTypeDescriptionDefault
lengthnumber(Required) The length of the string to generate in number of characters required
separatorstring(Optional) (default "-") The character used to separate the memorable and id seg"-"
memorable_lengthnumber(Optional) (default 2) The number of words in the memorable segment.2
memorable_separatorstring(Optional) (default "-") The character used to separate words in the memorable s"-"
keepersmap(any)(Optional) (default {}) Arbitrary map of values that, when changed, will trigger{}
id_charactersstring(Optional) (default a-z0-9) The character set used to generate the id segment, e"abcdefghijklmnopqrstwxyz0123456789"
Outputs (3)
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
Resources (2)
random_petrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud RANDOM
★ Stars0
Forks1
Total downloads842
Inputs6
Outputs3
Resources2
LicenseNOASSERTION
NamespaceDanielFallon
Updated