A team switches an HCP Terraform workspace from remote to local execution so engineers can run Terraform from their laptops, keeping the cloud block. The workspace still lists a Terraform variable named region and is in scope of an AWS credentials variable set. The next local plan prompts for region, and the AWS provider finds no credentials. What explains this?
Choose one.
What local execution mode keeps and drops
With local execution, Terraform runs on the workstation through the CLI-driven workflow and the workspace keeps only the state. HCP Terraform does not evaluate workspace variables or variable sets in this mode, so the engineers must supply region and the AWS credentials locally (for example in tfvars files and environment variables).
- Identify the mode: local execution with the cloud block.
- Recall what HCP Terraform still does in local mode: state storage and locking only.
- Conclude that neither workspace variables nor variable sets reach the run.
Exam tip: Local execution: HCP keeps the state, you supply every variable.
Terraform Professional (002): Operating HCP Terraform and Tracking Usage and Cost — the lesson that teaches this.