Amazon ECS

Receive Amazon ECS container task and service state change events via EventBridge.

InboundCloud Platforms
Start Free Trial

Quick Setup

Copy Webhook URL

Go to your Alert24 dashboard and copy the webhook URL for Amazon ECS.

Configure Amazon ECS

Add the webhook URL in your Amazon ECS settings.

Auto-Detected

Alert24 auto-detects Amazon ECS payloads and maps them to incidents.

Step-by-Step Setup Instructions

Amazon ECS Webhook Setup

1.In EventBridge, create a rule with source aws.ecs and detail-type ECS Task State Change or ECS Service Action
2.Set the target to an SNS topic
3.Add an HTTPS subscription to the SNS topic using the webhook URL above
4.Confirm the subscription when you receive the confirmation request
5.ECS automatically emits events when tasks start, stop, or change state

Example Webhook Payload

This is a sample payload that Amazon ECS sends to Alert24 when an alert fires.

{
  "version": "0",
  "source": "aws.ecs",
  "detail-type": "ECS Task State Change",
  "detail": {
    "clusterArn": "arn:aws:ecs:us-east-1:123456789012:cluster/production",
    "taskArn": "arn:aws:ecs:us-east-1:123456789012:task/production/abcdef123456",
    "taskDefinitionArn": "arn:aws:ecs:us-east-1:123456789012:task-definition/my-service:42",
    "lastStatus": "STOPPED",
    "desiredStatus": "STOPPED",
    "stoppedReason": "Essential container in task exited",
    "group": "service:my-service",
    "containers": [
      {
        "name": "app",
        "lastStatus": "STOPPED",
        "exitCode": 1,
        "reason": "OutOfMemoryError"
      }
    ],
    "createdAt": "2024-01-15T10:00:00Z",
    "stoppedAt": "2024-01-15T10:30:00Z"
  }
}

How Alert24 Maps Amazon ECS Data

Status Field

detail.lastStatus

Message Field

detail.stoppedReason

Auto-Create Incidents

Yes

Auto-Resolve Incidents

Yes

Status Mapping

Alert24 StatusAmazon ECS Values
operational
RUNNING
degraded
PENDINGPROVISIONINGACTIVATING
down
STOPPEDDEPROVISIONING

Connect Amazon ECS to Alert24 in minutes

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

More Cloud Platforms Integrations