A lambda function which posts Mailgun webhooks to Slack. It's a fairly simple setup:
You can create a new Slack webhook using the webhook app
If you're zipping your function up, you first need to install your node modules
npm i --production
Zip all files or deploy to AWS Lambda however you would normally.
There area a couple of environment variables which need adding to your lambda instance:
SLACK_WEBHOOK=https://hooks.slack.com/your/webhookurl
MAILGUN_API_KEY=private-mailgun-api-key
The above can be added in your AWS console, or as an .env
file.