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.
More on Variables, Locals, Outputs and Types
How do you declare an input variable?BeginnerIn what order does Terraform load variable values?BeginnerHow do you define an output and what is it for?BeginnerWhat is the difference between locals and variables?BeginnerWhat are the primitive types in Terraform?BeginnerHow do list, set and map differ?Intermediate