https://github.com/elasticbyte/ecs-watchdog
Post a Slack notification to a channel when an AWS ECS task goes into an unexpected STOPPED status.
https://github.com/elasticbyte/ecs-watchdog
aws aws-ecs aws-ecs-cluster aws-ecs-fargate aws-ecs-service slack
Last synced: 4 months ago
JSON representation
Post a Slack notification to a channel when an AWS ECS task goes into an unexpected STOPPED status.
- Host: GitHub
- URL: https://github.com/elasticbyte/ecs-watchdog
- Owner: elasticbyte
- License: apache-2.0
- Created: 2020-07-20T21:23:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T05:56:27.000Z (almost 2 years ago)
- Last Synced: 2025-01-04T01:34:05.443Z (6 months ago)
- Topics: aws, aws-ecs, aws-ecs-cluster, aws-ecs-fargate, aws-ecs-service, slack
- Language: JavaScript
- Homepage:
- Size: 1.19 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ecs-watchdog
Post a Slack notification to a channel when an AWS ECS task goes into an unexpected `STOPPED` status.
A project by [Elastic Byte](https://elasticbyte.net). Built with :heart: in :guitar: Nashville.
## Installation
1. Create a AWS Lambda function named `ecs-watchdog` 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:

## Support, Bugs, And Feature Requests
Create issues here in GitHub (https://github.com/elasticbyte/ecs-watchdog/issues).
## License & Legal
Copyright 2021 [Elastic Byte](https://elasticbyte.net)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttps://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.