Terraform unsensitive

vidyasagarmsc

Vidyasagar SC Machupalli

Posted on May 19, 2021

Terraform unsensitive

For every sensitive=true in Terraform, there is a nonsensitive function...

variable "password" {
   type        = string
   description = "Password"
   sensitive  = true
}
Enter fullscreen mode Exit fullscreen mode

nonsensitive takes a sensitive value and returns a copy of that value with the sensitive marking removed, thereby exposing the sensitive value.

output "sensitive_password" {
  value = nonsensitive(var.password)
}
Enter fullscreen mode Exit fullscreen mode

The nonsensitive function removes the sensitive marking from a value that Terraform considers to be sensitive.

Note: The nosensitive function is only available in #Terraform v0.14 and later.

💖 💪 🙅 🚩
vidyasagarmsc
Vidyasagar SC Machupalli

Posted on May 19, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Terraform unsensitive
terraform Terraform unsensitive

May 19, 2021