mirror of https://github.com/hashicorp/terraform
Merge pull request #26485 from hashicorp/pselle/sensitive-var-console
Obfuscate sensitive vals in consolepull/26486/head
commit
1b29be2356
@ -0,0 +1,20 @@
|
||||
terraform {
|
||||
experiments = [sensitive_variables]
|
||||
}
|
||||
|
||||
variable "foo" {
|
||||
default = "bar"
|
||||
}
|
||||
|
||||
variable "snack" {
|
||||
default = "popcorn"
|
||||
}
|
||||
|
||||
variable "secret_snack" {
|
||||
default = "seaweed snacks"
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
locals {
|
||||
snack_bar = [var.snack, var.secret_snack]
|
||||
}
|
||||
Loading…
Reference in new issue