Terraform Cloud

Receive run notifications and log infrastructure changes to correlate with incidents.

InboundCI/CD & DevOps
Start Free Trial

Quick Setup

Copy Webhook URL

Go to your Alert24 dashboard and copy the webhook URL for Terraform Cloud.

Configure Terraform Cloud

Add the webhook URL in your Terraform Cloud settings.

Auto-Detected

Alert24 auto-detects Terraform Cloud payloads and maps them to incidents.

Step-by-Step Setup Instructions

Terraform Cloud Webhook Setup

1.In Terraform Cloud, go to Settings → Notifications
2.Click Create a Notification
3.Choose Webhook as the destination
4.Enter the webhook URL above
5.Optionally set a Token for signature verification
6.Select triggers: Run Errored, Run Completed
7.Click Create

Example Webhook Payload

This is a sample payload that Terraform Cloud sends to Alert24 when an alert fires.

{
  "payload_version": 1,
  "notification_configuration_id": "nc-abc123",
  "run_url": "https://app.terraform.io/app/org/workspaces/prod/runs/run-abc123",
  "run_id": "run-abc123",
  "workspace_name": "production",
  "organization_name": "my-org",
  "notifications": [
    {
      "message": "Run errored in workspace production",
      "trigger": "run:errored",
      "run_status": "errored",
      "run_updated_at": "2024-01-15T10:30:00Z"
    }
  ]
}

How Alert24 Maps Terraform Cloud Data

Status Field

notifications.0.trigger

Message Field

notifications.0.message

Auto-Create Incidents

Yes

Auto-Resolve Incidents

Yes

Status Mapping

Alert24 StatusTerraform Cloud Values
operational
run:completed
down
run:errored

Track Infrastructure Changes from Terraform

Track changes for incident correlation and AI root cause analysis

  1. 1Configure a Terraform Cloud notification webhook pointing to your Alert24 Changes Webhook URL
  2. 2Or add a local-exec provisioner to your Terraform config
# Add to your Terraform config:
resource "null_resource" "alert24" {
  triggers = { always = timestamp() }
  provisioner "local-exec" {
    command = <<-EOT
      curl -s -X POST "$ALERT24_CHANGES_URL" \\
        -H "Content-Type: application/json" \\
        -d '{
          "summary": "Terraform apply completed",
          "change_type": "infrastructure",
          "source": "terraform",
          "changed_by": "'$(whoami)'"
        }'
    EOT
  }
}

Changes are logged per service. Copy the Changes Webhook URL from your service page in Alert24. When an incident occurs, recent changes are surfaced automatically with AI-powered root cause analysis. Learn more →

Connect Terraform Cloud to Alert24 in minutes

Free plan includes 5 monitors, 1 status page, and incident management. No credit card required.

More CI/CD & DevOps Integrations