Skip to content

Terraform module to generate secure random alphanumeric strings with optional special characters.

License

Notifications You must be signed in to change notification settings

QuestOpsHub/terraform-azurerm-random-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random String Terraform Module

Terraform module to generate secure random alphanumeric strings with optional special characters.

Table of Contents

Requirements

Name Version
terraform >=0.13
azurerm >=4.0.0
random >=3.6.3

Providers

Name Version
random >=3.6.3

Modules

No modules.

Resources

Name Type
random_string.random resource

Inputs

Name Description Type Default Required
keepers (Map of String) Arbitrary map of values that, when changed, will trigger recreation of resource. map(string) {} no
length (Number) The length of the string desired. The minimum value for length is 1 and, length must also be >= (min_upper + min_lower + min_numeric + min_special). number n/a yes
lower (Boolean) Include lowercase alphabet characters in the result. Default value is true. bool true no
min_lower (Number) Minimum number of lowercase alphabet characters in the result. Default value is 0. number 0 no
min_numeric (Number) Minimum number of numeric characters in the result. Default value is 0. number 0 no
min_special (Number) Minimum number of special characters in the result. Default value is 0. number 0 no
min_upper (Number) Minimum number of uppercase alphabet characters in the result. Default value is 0. number 0 no
numeric (Boolean, Deprecated) Include numeric characters in the result. Default value is true. If number, upper, lower, and special are all configured, at least one of them must be set to true. bool true no
override_special (String) Supply your own list of special characters to use for string generation. This overrides the default character list in the special argument. The special argument must still be set to true for any overwritten characters to be used in generation. string null no
special (Boolean) Include special characters in the result. These are !@#$%&*()-_=+[]{}<>:?. Default value is true. bool true no
upper (Boolean) Include uppercase alphabet characters in the result. Default value is true. bool true no

Outputs

Name Description
id (String) The generated random string.
result (String) The generated random string.

About

Terraform module to generate secure random alphanumeric strings with optional special characters.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages