Skip to content

Go script to check who is on call on Pagerduty and runs it on aws lambda

Notifications You must be signed in to change notification settings

parachutehealth/pagerduty-oncall-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go script to check who is on call on Pagerduty and runs it on aws lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.1%
  • Makefile 4.3%
  • Shell 3.6%