AWS CodeDeploy Notifications To Slack

1. Go to AWS Chatbot console.

2. In the Configure a chat client section,

  • For Chat client, select Slack.
  • Click Configure client.

0001

3. Click Allow.

0002

4. Click Configure new channel.

0003

5. In the Configuration details section, enter fcj-slack for Configuration name. Next, you might need go to Slack Workspace to get the required channel ID.

0004

6. Navigate to your Slack Workspace created in 4.2 Create Slack Channels.

  • Right click aws-codedeploy channel.
  • Select View channel details.

0005

7. In the opening modal,

  • Choose the About tab.
  • Copy the Channel ID.

0006

8. Return to your AWS Chatbot configuration console, in the Slack channel section.

  • For Channel type, select Private.
  • For Channel ID, enter the channel ID you got from step 7.

0007

9. In the Permissions section,

  • For Role settings, select Channel role.
  • For Channel role, select Create an IAM role using a template.
  • For Role name, enter chatbot-role.

0008

10. In the Notifications - optional section, select US East - N. Virginia for Region 1.

0009

11. Scroll down to the bottom, click Configure.

00010

12. Note down the chat configuration ARN.

00011

13. Go to AWS CodeDeploy console.

14. In the left sidebar,

  • Expand the Deploy - CodeDeploy dropdown.
  • Select Applications.
  • Click AppECS-fcj-awsome-books.

00012

15. Expand the Notify dropdown, click Create notification rule.

00013

16. In the Notification rule settings section,

  • For Notification name, enter slack-notification.
  • For Detail type, select Full.

00014

17. In the Events that trigger notifications, click Select all.

00015

18. In the Targets section,

  • For Choose target type, select AWS Chatbot (Slack).
  • For Choose target, enter the chat configuration ARN you have noted down in step 12.
  • Click Create.

00016

19. Navigate to your Slack Workspace created in 4.2 Create Slack Channels.

  • Expand the Apps dropdown.
  • Click Add apps.

00017

20. Filter with value aws, click Add for AWS Chatbot.

00018

21. Click Add to Slack.

00019

22. Back to your Slack Workspace, enter invite @aws in the aws-codedeploy channel and then click send icon.

00020

23. Click Invite Them.

00021