EC2 Instance State Change Alerts

Any EC2 instance that starts, stops, or terminates unexpectedly fires an EventBridge event. The agent reads it, adds context (who, why, tags), and posts to your #infra WhatsApp group.

Webhook + WhatsApp Groupec2eventbridgealerts

Conversation example

Webhook received: EC2 Instance State-change Notification — state=terminated
http_request → EC2 + CloudTrail

EC2 instance terminated. Pulling instance tags and CloudTrail context...

whatsapp_web_send

EC2 Termination — us-east-1 Instance: i-0a1b2c3d4e5f67890 Type: m6i.xlarge Tags: Name=api-prod-03, Env=production, Team=backend State: running → terminated Triggered by: rivka-d@lunogen.com via AWS CLI Reason: 'replacing with larger instance' ASG: api-prod-asg (now 7 of 8 desired — will self-heal) Posted to #infra-alerts. ASG health check will spin up a replacement in ~90s.

More AWS use cases

Deploy this in minutes

Create a LunoGen agent, connect AWS, and start running this workflow from WhatsApp today.

Back to AWS