Skip to content

Post a Slack notification to a channel when an AWS ECS task goes into an unexpected STOPPED status.

License

Notifications You must be signed in to change notification settings

elasticbyte/ecs-watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecs-deploy-watchguard

Post a Slack notification to a channel when an AWS ECS task goes into an unexpected STOPPED status.

Installation

  1. Create a AWS Lambda function named ecs-deploy-watchguard using the Node.js 12.X runtime. Set the basic setting timeout to something reasonable like 10 seconds from the default to allow for Slack API slowness.

  2. Create a webhook in Slack and set the environment variable SLACK_WEBHOOK_URL in the AWS Lambda function.

  3. Navigate to CloudWatch and then to Events => Rules. Create a new rule with the following:

CloudWatch Events Rule

About

Post a Slack notification to a channel when an AWS ECS task goes into an unexpected STOPPED status.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published