AWS SNS - Lambda Slack integration written in Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor/github.com
.gitignore
Gopkg.lock
Gopkg.toml
README.md
main.go
main_test.go
slack.go
sns.go

README.md

AWS SNS - Lambda Slack integration written in Go

Using (just recently) released official support for Go in lambda. Inspired by terranova's article.

Install

  • start with dep ensure

Follow steps in aws manual:

  1. GOOS=linux go build -o main
  2. zip deployment.zip main
  • upload this file in lambda function setup
  • make sure you specify ENV variable WEBHOOK_URL with appropriate slack webhook URL
  • configure lambda trigger as SNS

My usecase

AWS Healhcheck integration with slack, where Healthcheck sends notifications to the SNS which triggers the lambda.