Basics

Terraform Cloud runs Terraform operations and stores state remotely, so you can use Terraform without worrying about the stability of your local machine, or the security of your state file.

Workflows

Resources are organized by workspaces, which contain your resource definitions, environment and input variables, and state files. A Terraform operation occurs within a workspace, and Terraform uses the configuration and state for that workspace to modify your infrastructure.

Terraform Cloud supports three workflows for your Terraform runs:

  • The CLI-driven workflow, which uses Terraform’s standard CLI tools to execute runs in Terraform Cloud.

    • Inititated from a terminal
    • Terraform uses remote execution environment
  • The UI/Version Control System(VCS)-driven workflow, in which changes pushed to version control repositories trigger runs in the associated workspace.

    • Requires access to the VCS from Terraform cloud
    • Associated to a repository containing Terraform configuration
  • The API-driven workflow, which allows you to create tooling to interact with the Terraform Cloud API programmatically.

Last modified July 21, 2024: update (e2ae86c)