DevOps Notifications with AWS Chatbot - Integrating AWS Events with Slack and Teams

Learn how to deliver CloudWatch alarm and CodePipeline notifications to Slack and Teams, and build a ChatOps environment where you can operate AWS using @aws commands from chat.

How Chatbot Works and Supported Services

AWS Chatbot is a ChatOps service that delivers AWS notifications to Slack and Microsoft Teams and enables AWS operations from chat channels. By associating an SNS topic with a chat channel, messages published to that topic are delivered as chat notifications. Supported AWS services include CloudWatch alarms, AWS Health, Security Hub, Budgets, CodePipeline, CodeBuild, GuardDuty, Systems Manager, Config, and many more. Notification messages are displayed in optimized formats for each service, providing visual insight into alarm state transition graphs and pipeline stage progress.

Notification Setup and ChatOps

Setup is completed in three steps: connect your Slack workspace or Teams tenant to Chatbot, select a channel, and associate an SNS topic. For CloudWatch alarm notifications, when an alarm transitions to the ALARM state, a message is posted to the Slack channel with an attached metrics graph. The ChatOps feature lets you execute AWS CLI commands from chat channels using @aws commands. For example, @aws lambda invoke --function-name my-function invokes a Lambda function, and @aws cloudwatch describe-alarms --state-value ALARM lists alarms in the ALARM state. During incident response, you can complete situation assessment and response actions within the chat channel, reducing context switching.

Security and Access Control

Chatbot channel configurations are associated with IAM roles that control which AWS operations can be executed from that channel. A recommended configuration is to allow production environment operations only from a dedicated ops channel while limiting general development channels to read-only operations. Guardrail policies can restrict the IAM actions permitted per channel, preventing accidental impact on production environments. Chatbot operation logs are recorded in CloudTrail, enabling auditing of who executed which commands and when. Chatbot itself is free to use, with only SNS delivery charges applying. To deepen your knowledge of Slack notification operations, specialized books on Amazon can be helpful.

Chatbot Pricing

AWS Chatbot is free to use. There are no additional charges for delivering notifications to Slack or Teams, or for executing AWS CLI commands from chat. The only costs are for the SNS topics that trigger notifications (approximately $0.50 per million requests) and the resources created or modified as a result of ChatOps-executed AWS operations. Since it can be adopted at no cost and significantly improves operational visibility and response speed, deployment across all teams is recommended.

Summary

AWS Chatbot is a ChatOps service that turns Slack and Teams into an AWS operations hub. It enables immediate incident detection through alarm notifications, rapid response through AWS operations from chat, and safe operations through IAM role-based access control. Its free pricing and low adoption barrier make it an attractive choice.