Terraform resource: random string

From wikieduonline
Revision as of 05:34, 12 February 2024 by Welcome (talk | contribs) (→‎Examples)
Jump to navigation Jump to search
random_string

Examples

Official example:

resource "random_string" "random" {
  length           = 16
  special          = true
  override_special = "/@£$"
}

Exclude special characters:

resource "random_string" "yourrandom" {
  length           = 8
  special          = false
}


terraform plan
random_string.suffix: Refreshing state... [id=7x929348]

Related

See also

Advertising: