Skip to content

saif-utilities / naming / base

Providers

Name Version
random >= 3.0, < 4.0

Inputs

Name Description Type Default Required
environment The environment for the resources string "" no
environment_short_name The short name of the environment string "" no
organization_name The organization name for the resources string "" no
owner_name The owner name for the resources string "" no
prefix List of prefix components to add to resource names. Components are joined together when constructing the different casing names. Use lowercase characters when possible. list(string) [] no
project_id The project id for the resources string "" no
resource_config Configuration for the specific resource type.

regex: Regular expression pattern that the generated name must match. This enforces naming constraints including length limits, allowed characters, and format requirements.
object({
slug = optional(string, "")
dashes = bool
scope = string
regex = string
})
n/a yes
suffix List of suffix components to add to resource names. Components are joined together when constructing the different casing names. Use lowercase characters when possible. list(string) [] no
tenant The tenant for the resources string "" no
unique_include_numbers If you want to include numbers in the unique generation bool true no
unique_length Max length of the uniqueness suffix to be added number 4 no

Outputs

Name Description
name The generated resource name
name_casings Base names in all casing styles (without resource slugs)
name_unique The generated resource name with uniqueness suffix
resource_naming Resource naming output with all casing options and metadata

Resources

  • resource.random_string.main (/terraform-docs/modules/naming/base/main.tf#1)

View source on GitHub