terraform_cloud provider.
Provider Settings
Required Claims
The mapping must pin bothterraform_organization_id and terraform_workspace_id. Pin terraform_run_phase to split plan and apply:
terraform_run_phase set to plan and read scopes only.
Workspace Configuration
In the workspace, add these environment variables:
HCP Terraform then sets
TFC_WORKLOAD_IDENTITY_TOKEN in each run phase.
Terraform Provider
SDK Usage
For code that runs in a Terraform run, for example an external data source, use theterraformCloud() helper: