Skip to content

Terraform Cloud ​

Manage infrastructure as code with Terraform Cloud workspaces, runs, and state.

DetailValue
CategoryDevOps
Base URLhttps://app.terraform.io/api/v2
AuthenticationBearer Token
Endpoints8
Connector keyterraform-cloud

Using Terraform Cloud in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick Terraform Cloud from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — see the table below.

Available Endpoints ​

EndpointSummary
GET /organizationsList organizations
GET /organizations/{organization_name}/workspacesList workspaces
POST /organizations/{organization_name}/workspacesCreate a workspace
GET /workspaces/{workspace_id}Get workspace details
POST /runsCreate a run
GET /runs/{run_id}Get run details
POST /runs/{run_id}/actions/applyApply a run
GET /workspaces/{workspace_id}/current-state-versionGet current state

Each endpoint has its own page with parameter details, an example API Call node configuration, and the response shape.