Question 690
At Valewood Education Services, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a short-lived cloud token must be passed to a provider but the team wants it omitted from saved plan and state. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. What mechanism explains why the original approach fails?
Explanation
Correct Answer
Ephemeral inputs are not persisted in state or plan and can configure providers in Terraform 1.12. That mechanism distinguishes ephemeral input variable in terraform 1.12 in the Valewood Education Services case. The corresponding appropriate correction is: Mark the appropriate input variable ephemeral and use it in a supported ephemeral context. The measurable acceptance test is: A controlled run authenticates while the token is absent from saved state artifacts.
Incorrect Answers
The offered principle describes: Write-only arguments avoid persisting the supplied value in Terraform artifacts when provider support exists. The situation in this question instead depends on: Ephemeral inputs are not persisted in state or plan and can configure providers in Terraform 1.12. These are different technical conditions.
This alternative is valid when terraform references local values through the local namespace. The facts here establish a different controlling reason: Ephemeral inputs are not persisted in state or plan and can configure providers in Terraform 1.12.
The offered principle describes: Locals are internal computed values rather than externally assignable module arguments. The situation in this question instead depends on: Ephemeral inputs are not persisted in state or plan and can configure providers in Terraform 1.12. These are different technical conditions.