This function is to send the EMR Events captured by CloudWatch Events service via SNS
to a public Slack channel using the Incoming WebHooks feature
- Create a NodeJS Lambda function using the code available
- Configure Environment Variables - SLACK_CHANNEL and SLACK_WEBHOOK_PATH (only the part from /services/..)
- Create an SNS topic
- Enable CloudWatch Event rules (shown below) for EMR clusters and choose the above created SNS topic as a Target
- Add SNS as a Trigger for the Lambda function
This function is to send the EMR Events captured by CloudWatch Events service to a public Slack channel using the Incoming WebHooks feature
- Create a NodeJS Lambda function using the code available
- Configure Environment Variables - SLACK_CHANNEL and SLACK_WEBHOOK_PATH (only the part from /services/..)
- Enable CloudWatch Event rules for EMR clusters and choose the above created Lambda function as a Target.
{
"source": [
"aws.emr"
],
"detail-type": [
"EMR Cluster State Change"
],
"detail": {
"state": [
"RUNNING",
"TERMINATED",
"TERMINATED_WITH_ERRORS"
]
}
}
{
"source": [
"aws.emr"
],
"detail-type": [
"EMR Step Status Change"
],
"detail": {
"state": [
"RUNNING",
"COMPLETED",
"CANCELLED",
"FAILED"
]
}
}