


This terraform code will also create a SNS topic and a CloudWatch event rule so that the specified CloudTrail API calls will trigger the CloudWatch event and send notification to SNS which will send the event details to Slack channel. ChatGPT, the AI chatbot developed by OpenAI, has recently become one of the most popular tools for its ability to solve problems and quickly answer users queries. AWS Chatbot is an interactive agent that makes it easy to monitor and interact with your Amazon Web Services (AWS) resources from your teams channels. Once you apply the terraform code, a channel will be created. Also change the value for slack_channel_id. Ĭhange the value for chatbot_slack_workspace_id with your workspace id(which you get when you create Slack client in AWS Chatbot). Step 2: Download the terraform code given at. With the AWS Chatbot, users can receive notifications from AWS services directly in their chat channels, allowing them to take action on their infrastructure by typing commands without having to switch to another tool. You don’t need to configure a channel as we will use Terraform for that. This move expands AWS Chatbot’s capabilities beyond its previous integrations with Amazon Chime and Slack. Step 1: Follow and create a Slack Client in AWS Chatbot. For Demo, we’ll use following API calls related to EKS. In this post, we’ll see how we can send the details of CloudTrail API calls to a Slack channel using AWS Chatbot. user Role Required BooleanĮnables use of a user role requirement in your chat configuration OutputsĪll input properties are implicitly available as output properties.Send CloudTrail API Call Notification To Slack Using AWS Chatbot This property affects the log entries pushed to Amazon CloudWatch logs sns Topic Arns ListĪRNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications. Specifies the logging level for this configuration:ERROR,INFO or NONE. Step 1: Setting up AWS Chatbot with Slack Step 2: Subscribe an Amazon SNS topic to AWS Chatbot Step 3: Test notifications from AWS services to Amazon Chime or Slack Next steps Prerequisites Before you get started, make sure you've completed the tasks in Setting up AWS Chatbot. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set. The list of IAM policy ARNs that are applied as channel guardrails. The id of the Slack workspace guardrail Policies List Slack and Amazon are also promising better product integration and interoperability for features like AWS Chatbot, a service that pushes out Slack channel alerts for AWS instances.

The id of the Slack channel slack Workspace Id String The ARN of the IAM role that defines the permissions for AWS Chatbot slack Channel Id String The name of the configuration iam Role Arn String AWS Chatbot is an interactive agent that makes it easy to monitor and interact with your AWS resources in your Slack channels and Amazon Chime chat rooms.
