CLI-driven workflow
The HCP Terraform workflow in which terraform plan and apply, run at a terminal with a cloud block, upload the working directory and run it remotely.
In more detail
Output streams back to the terminal while the run uses the workspace's variables and credentials. Values passed with -var or as TF_VAR_ environment variables travel with the run. A .terraformignore file can leave files out of the upload.
Example
terraform apply (streams a remote run)Related terms
- cloud block — The block inside the terraform block that connects a configuration to HCP Terraform or Terraform Enterprise.
- VCS-driven workflow — The HCP Terraform workflow in which a workspace is linked to a repository branch and runs start from commits and pull requests.
- API-driven workflow — The HCP Terraform workflow in which your own tooling uploads a configuration version and starts runs through the API.
Taught in
- VCS, CLI And API Workflows: Speculative Plans And Run Triggers — HashiCorp Terraform Associate (004) Exam Prep