Skip to content
Laurent Nicolas edited this page Sep 15, 2022 · 6 revisions

Welcome to the terraform-provider-netapp-cloudmanager wiki!

Handling sensitive input variables in Terraform

Please see

In a nutshell

  1. declare sensitive variables in a variable.tf files, and reference them in other resources files
  2. initialize the variables by using a .tfvars file or by environment variables of the form: TF_VARS_<var_name>

For instance, in variables.tf

variable "cvo_admin_password" {
  type      = string
  sensitive = true
}

and then

either

export TF_VAR_cvo_admin_password=my_password

or use a protected .tfvars file with

cvo_admin_password = "my_password"

Clone this wiki locally