Inspiration

I've always loved that movie moment when the red alarm lights start spinning, the sirens wail, and everyone rushes to fix the crisis. Then I realized on-call engineers live a quieter version of that scene every time production breaks at 2 AM — except their "alarm" is usually one more push notification buried among dozens of others.

The problem is real: alert fatigue is now a reliability risk; many on-call engineers admit to ignoring alerts, and two popular paging options are going away (Opsgenie is being shut down, and AWS Incident Manager no longer accepts new customers). Small teams on AWS need a simple, self-hosted way to actually wake the right person.

So I stitched the movie scene and the on-call reality together. That's Sirenus.

What it does

Sirenus is a "haunted control room" for AWS infrastructure. When a real incident hits, it:

  • Detects it from CloudWatch: 5xx rate, p99 latency, and a two-window SLO burn-rate alarm, merged into one composite alarm so you get exactly one page per incident.
  • Lights up the room: a physical alarm beacon (ESP32 + WS2812 LEDs over MQTT/AWS IoT Core) and a virtual beacon in the browser change color with severity.
  • Calls a human: "The Operator", a slow, deep Polly voice on Amazon Connect, phones the primary on-call, reads a summary of the incident and asks them to press 1 to acknowledge (9 to replay).
  • Escalates: if nobody answers before the timeout, Sirenus calls the secondary on-call and the control room goes up a level.
  • Shows everything in one place: a real-time control room with the incident timeline, error logs and CloudTrail events, an ack countdown, and a UI that shifts from calm green to blood red as the incident gets worse. Fear is data: every color is tied to a real number (burn rate and unacknowledged time), with no random jump scares.
  • Closes itself: when the alarm returns to OK, the incident closes, the light turns green and the escalation stops. MTTA/MTTR are calculated from the timeline.
  • Nightmare Drill: one button starts a controlled game day. AWS FIS plus a load generator inject faults rebuilt from real public postmortems, and the incident is scored on MTTA, MTTR and escalations.

Sirenus is built as a plugin: the core only speaks a versioned incident-event contract. The demo app, FIS experiments and load generator are removable props, and any device that can subscribe to MQTT can become another "body part" of the monster.

How I built it

Sirenus is stitched together from parts that were never meant to work together: a phone network from 1876, embedded C++ on a $5 microcontroller, serverless workflows, a database, and fault injection whose whole job is to break things. Each part speaks a different language, keeps time differently, and fails in its own way.

CloudWatch ──(adapter)──► Incident contract ──► Step Functions ──┬──► Amazon Connect ☎  (phone network)
 metrics                    JSON Schema v0      task token +    ├──► AWS IoT Core ──► ESP32 💡 (hardware)
                                                timeout         └──► DynamoDB ──► WebSocket ──► Browser 🖥
                   ▲                                                                              │
                   └──────────────────── ack (key 1 / web button) ◄──────────────────────────────┘

Detection. CloudWatch metric math (multi-window burn rate) feeds a composite alarm, which goes through EventBridge to an adapter Lambda. The adapter converts alarms into the Sirenus incident-event contract (JSON Schema, versioned).

Escalation brain. AWS Step Functions (Standard) pages the light and the phone in parallel, then waits for an acknowledgement using a task token with a timeout. The timeout is the escalation timer.

Memory. A single DynamoDB table (one partition per incident, one item per timeline event) is streamed to the browser through API Gateway WebSocket.

Voice. Amazon Connect places outbound calls with Polly SSML and reads DTMF keys; a Lambda in the contact flow returns the task token.

Hardware. ESP32 firmware (C++/PlatformIO) subscribes to a retained MQTT topic on AWS IoT Core, so the beacon returns to the right state after a power loss. The core never knows which devices exist.

Control room. React + Vite, Cognito login, and severity-driven CSS variables.

Infra. Terraform is split into core/ and demo/ modules. The core keeps working after the demo module is removed, which is my proof that Sirenus is a plugin.

Testing. Vitest, contract tests, and a golden-path end-to-end script that replays the whole demo flow and prints the alarm-to-light and alarm-to-call times.

Kiro wrote the product code (services, web, firmware), one spec per module, guided by steering files and with the incident contract as the only shared boundary between modules.

Challenges I ran into

  • Telephony is hard. Outbound calling needed an Amazon Connect number and an AWS request to open calls to Vietnam (+84). AI speech-to-speech (Nova Sonic) was too risky for a solo month, so I cut it down to Polly + keypad.
  • SMS in the US needs number registration, which takes days, so SMS was moved out of the MVP.
  • Fault injection into a database outside AWS: FIS can't reach Supabase directly, so database failures are simulated at the Lambda layer with a fault switch.
  • Not making alert fatigue worse: one composite alarm, de-duplication per alarm, and paging only on burn rate.
  • Scope: working solo, I planned the project as 6 stages with hard cut lists, and dropped anything that wasn't on the 7-step golden path.

Accomplishments that I'm proud of

  • A real phone call from a real alarm: press 1, and the escalation stops.
  • A loosely coupled core: the demo app can be removed and Sirenus still works through the contract.
  • The end-to-end flow can be replayed with one script, and the alarm-to-light/call time is measured every run.
  • Physical hardware, a 140-year-old technology (the telephone call), serverless workflows and a horror UI all working together in one system.

What I learned

  • Spec-driven development pays off for event-driven systems: writing the requirements and design first caught contract mismatches between modules before any code ran.
  • Short steering files (including a "spec-style" file that keeps specs concise) changed the quality of Kiro's output more than long prompts did.
  • Step Functions task tokens are a great fit for "wait for a human, then escalate".
  • Designing horror to be safe: physical light flashes stay under 3 per second, and the screen never flickers.

What's next for Sirenus

  • AI voice conversation with The Operator (Nova Sonic): "acknowledge", "what's happening?", "call the next person".
  • Telegram notifications and a physical ack button on the beacon.
  • Bedrock-written "Autopsy" postmortems that compare your response with how the original company handled the incident.
  • A thermal printer that prints an incident ticket on page and a "death certificate" on close.
  • Packaging Sirenus as a Kiro Power so other teams can install it with one command.

Built With

Share this project:

Updates

Submission history