skip to Main Content

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.

2

Answers


  1. 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.
    Login or Signup to reply.
  2. Sure, you can. I followed the below steps

    1. Select a pipeline (radio button)
    2. Click on Notify button -> create notification rule
    3. Notification name
    4. Detail Type: Basic
    5. Events: select all pipeline execution checkboxes
    6. Create Target
    7. Target type: AWS Chatbot (Slack)
    8. Configure client (Slack)
    9. Authorization
    10. Configure new channel (name, logging, channel type)
    11. Create an IAM role using a template
    12. Role name
    13. Notification permissions
    14. Policy name: AWSCodePipelineReadOnlyAccess
    15. Configure
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search