Tracecat
Book a demo

Terraform Cloud integration

List, inspect, and apply runs, and manage workspace variables.

IaC
11 actions
tools.terraform
Also available as an MCP server. Connect agents to the Terraform MCP server.

How it works

Each Terraform Cloud action is a YAML template or Python function in Tracecat's open-source registry, under tools.terraform. Add an action as a step in a workflow, or give it to an agent as a tool.

Credentials

Add these in Tracecat before running the actions. How credentials work

  • Secret terraform with TERRAFORM_API_TOKEN

Actions

Missing an integration? Write your own actions in YAML or Python in a custom registry and sync them from your Git repository.

  • Apply run

    Apply a planned Terraform Cloud run to execute infrastructure changes.

  • Create workspace variable

    Create a new variable in a Terraform Cloud workspace.

  • Get run details

    Get details for a specific Terraform Cloud run.

  • Get workspace details

    Get details for a workspace by ID or by organization and workspace name.

  • List projects

    List all projects in a Terraform Cloud organization.

  • List runs

    List all runs for a Terraform Cloud workspace.

  • List workspace variables

    List all variables configured for a Terraform Cloud workspace.

  • List workspaces

    List all workspaces in a Terraform Cloud organization, optionally filtered by project.

  • Plan run

    Create a plan-only run in Terraform Cloud to preview infrastructure changes.

  • Refresh state

    Create a refresh-only run to update Terraform state with real infrastructure.

  • Update workspace variable

    Update an existing variable in a Terraform Cloud workspace.

Automate Terraform Cloud with Tracecat

Open-source workflows and agents for security teams.