Interview Prep/Terraform/Variables, Locals, Outputs and Types

What are ephemeral variables and outputs?

AdvancedConceptVariables, Locals, Outputs and Types
Answer

Introduced in Terraform 1.10, ephemeral = true on a variable or output means the value is available during the run but never persisted to state or plan files. It is intended for secrets such as tokens passed into providers or to write-only arguments. Ephemeral values can only be used in ephemeral contexts, otherwise Terraform errors.

All Terraform questions Roadmap: Terraform

More on Variables, Locals, Outputs and Types