Question 490
Evergreen Development requires independent evidence before signing off this Terraform correction: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. Which observation best confirms that the proposed correction worked?
Explanation
Correct Answer
Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder. This directly verifies the corrective action: Use the documented Git-based module source syntax with an appropriate immutable reference. The measured result specifically addresses the failure at Evergreen Development: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically.
Incorrect Answers
Validation accepts the expression and the output contains the intended one or many instance IDs. This evidence would validate a DIFFERENT correction: Use the correct counted-resource index or an expression over instances when referencing their attributes. That different correction addresses: A list of indexed resources uses count but a caller references the whole group as if it were a single unindexed object. It does not establish that the Evergreen Development issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.
The failure can be diagnosed from redacted logs and no plaintext credential appears in the support ticket. This evidence would validate a DIFFERENT correction: Use controlled Terraform log settings and documented provider diagnostic methods without exposing credentials. That different correction addresses: An engineer attempts to debug a provider authentication issue by printing private keys directly in application code instead of using Terraform diagnostics. It does not establish that the Evergreen Development issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.
The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys. This evidence would validate a DIFFERENT correction: Pass root variable values into child module arguments rather than relying on tfvars propagation. That different correction addresses: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. It does not establish that the Evergreen Development issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.