Go script to check who is on call on Pagerduty and shows it on Slack
- Create a lambda function on your aws console
- Upload the versioned binary (or build your own: GOOS=linux GOARCH=amd64 go build -o main main.go )
- Configure an APIgateway on lambda console as well
- Create a slash-command /oncall (or whatever you want) on https://your-company.slack.com and insert the new API endpoint and method GET
- Setup the needed environment variables on lambda console
- Type /oncall on your slack and see the response