ephemeral values

Values, added in Terraform 1.10, that exist only during a run and are never written to state or plan files.

In more detail

Ephemeral input variables and outputs, and ephemeral resources that fetch a secret at run time, keep credentials out of storage entirely. They can only be used where Terraform knows they will not be persisted, such as provider configuration or write-only arguments. They reduce what state exposes but do not replace access control and rotation.

Example

variable "db_password" {
  type      = string
  ephemeral = true
}

Related terms

Related guides

Taught in

References

Certification courses