Difference between revisions of "Terraform resource: random string"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
} | } | ||
+ | Exclude special characters: | ||
resource "random_string" "yourrandom" { | resource "random_string" "yourrandom" { | ||
length = 8 | length = 8 | ||
Line 18: | Line 19: | ||
+ | resource "random_string" "mysuffix" { | ||
+ | length = 8 | ||
+ | special = false | ||
+ | } | ||
+ | |||
[[terraform plan]] | [[terraform plan]] | ||
− | [[random_string. | + | [[random_string.mysuffix]]: [[Refreshing state]]... [id=7x929348] |
== Related == | == Related == |
Latest revision as of 05:35, 12 February 2024
random_string
Examples[edit]
Official example:
resource "random_string" "random" { length = 16 special = true override_special = "/@£$" }
Exclude special characters:
resource "random_string" "yourrandom" { length = 8 special = false }
resource "random_string" "mysuffix" { length = 8 special = false } terraform plan random_string.mysuffix: Refreshing state... [id=7x929348]
Related[edit]
See also[edit]
Advertising: