Search code examples
amazon-web-servicesconfigurationnotificationsamazon-ecsslack

Slack notification once ECS service reach steady state


Is there any way to send the slack notification to a channel, if the AWS ECS service reaches a steady state after the deployment is completed which was triggered by Jenkins

Trying to get the ECS service to a steady state and send it as a slack notification after deployment is completed.


Solution

  • Yes, you can utilize a combination of services to achieve this.

    1. AWS Cloudwatch Events to monitor for when tasks are completed. This will involve setting up something to "watch" your cluster and then it will fire once your service is in a steady state.
    2. You can then integrate events with the SNS service so you can create a topic that will follow these events.
    3. You can then set up a sns subscription under an https endpoint that will allow you to send an event to Slack. You will probably have to create this endpoint from within your slack app and paste it in this subscription. I found an article that may help here.