pagerduty-aws-gateway¶
Status: Current | Last reviewed: 2026-05-28
PagerDuty webhook receiver. Validates the webhook signature and forwards an incident envelope to async-agent.
Source¶
Runtime¶
| Aspect | Value |
|---|---|
| Language | Python 3.12 |
| Trigger | PagerDuty webhook → API Gateway → Lambda |
What it does¶
- PagerDuty fires a v3 webhook on incident lifecycle events.
- Lambda validates the X-PagerDuty-Signature against the shared secret.
- Builds a
WEBHOOKevent withsource = "pagerduty"and the incident detail. - POSTs to async-agent.
Dependencies¶
| Service | Purpose |
|---|---|
| PagerDuty | Event source |
| Postgres | Tenant + signing secret |
| async-agent | Workflow trigger sink |
Vanguard¶
cd apps/pagerduty-aws-gateway
python -m pytest tests/
Production¶
Terraform in the customer's AWS account.