Terraform Cloud icon

Terraform Cloud

Interact with the Terraform Cloud API

Run → Cancel Run

AI-generated

Summary

Cancel a running plan or apply run in Terraform Cloud by specifying the Run ID and optionally providing a reason comment.

Inputs

  • Run ID (required) — Specify the ID of the run you want to cancel.
  • Reason / Comment — Optionally include a comment explaining why the run is being cancelled.

Output shape

a single JSON object containing the run ID, action performed ('cancel'), HTTP status code, and the full API response body.

The output includes the HTTP status code and the raw API response. The 'Reason / Comment' input is optional; if omitted, a default comment 'Cancelled from n8n' is used.

Examples

Example 1: Cancel a specific run

Set the 'Run ID' to the target run and optionally provide a cancellation reason in 'Reason / Comment'. When executed, the node calls the Terraform Cloud API to cancel the run and returns the status and response.

Links

Discussion