Simple web app that triggers PagerDuty incidents via SMS sent to a Twilio number
To use:
- Clone the repository.
- Build and deploy the website to the Internet
- Sign into PagerDuty and create a new generic API service and take note of your new service_key
- Create a PagerDuty escalation policy for your new service
- Sign into Twilio and create a new number for incoming SMS messaging.
- Set the Twilio Request URL to be the URL of the site deployed in step 2 adding the path, "PagerDuty/" followed by your PagerDuty service key from step 3.
i.e. https://alerts.mysite.com/PagerDuty/df1a15a5c3a942eb9ea14abb3a12ef4c
Enjoy -Craig