Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 789 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 789 Bytes

pagerduty-oncall-bot

Documentation in Notion: https://www.notion.so/parachute-health-design/PagerDuty-OnCall-Bot-8a1cfc64ad874520b0da462a993c32a8

Go script to check who is on call on Pagerduty and shows it on Slack

  1. Create a lambda function on your aws console
  2. Upload the versioned binary (or build your own: GOOS=linux GOARCH=amd64 go build -o main main.go )
  3. Zip the content. zip main.zip main
  4. Configure an APIgateway on lambda console as well
  5. Create a slash-command /oncall (or whatever you want) on https://your-company.slack.com and insert the new API endpoint and method GET
  6. Setup the needed environment variables on lambda console
  7. Type /oncall on your slack and see the response

Setup

Install modules

go get github.com/aws/aws-lambda-go/lambda