AWS EventBridge to Slack webhook integration; written in Ruby for as a Lambda function.
- Create a Lambda function
- Create an event bus
- Attach a rule to send events to the function
- Event pattern:
{"source":["prpl.ekiden.it"]}
- Event pattern:
NEKO_LOG_LEVELEKIDEN_SSMPS_CHANNELS_PATH: where the Slack inbound webhook URLs are storedEKIDEN_DETAILTYPE_PREFIX: e.g.,slack-alert:
Use Slack channel name as the parameter name and store the inbound webhook URL.
{
"detail-type": "slack-alert:<CHANNEL_NAME>",
"source": "prpl.ekiden.it",
"detail": "<JSON_SLACK_MESSAGE>"
}