Step 1: Go to your EC2 Instance and create an alarm by clicking on Alarm.
Step 2: The window will pop up and provide the information as shown below and click on “Create Alarm”.
Step 3: Your alarm is created.
Step 4: We have provided the Average CPU Utilization to 85 % but if you want to get an alarm quickly, you can put it as 1%.
Step 5: Now if your CPU will go beyond threshold value you will get a Message in Slack.
So we have configured a lambda function to send Cloudwatch alerts to Slack application.We can send any alerts which are sent through SNS to slack.We can also send a custom message by changing the lambda code.If you have any queries regarding this blog you can ask the questions to the forum.clodthat.com or you can post a comment.