1 Answer
- Newest
- Most votes
- Most comments
2
Hello,
To enable Logging for AWS Chatbot using AWS Cloudformation, This is how an example template will look like:
AWSTemplateFormatVersion: '2010-09-09'
Resources:
ChatbotLogsRole:
Type: 'AWS::IAM::Role'
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: 'Allow'
Principal:
Service: 'chatbot.amazonaws.com'
Action: 'sts:AssumeRole'
Policies:
- PolicyName: 'ChatbotLogsPolicy'
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: 'Allow'
Action:
- 'logs:CreateLogGroup'
- 'logs:CreateLogStream'
- 'logs:PutLogEvents'
Resource: 'arn:aws:logs:*:*:*'
ChatbotNotification:
Type: 'AWS::Chatbot::SlackChannelConfiguration'
Properties:
ConfigurationName: 'MyChatbotConfiguration'
IamRoleArn: !GetAtt ChatbotLogsRole.Arn
SlackChannelId: 'YOUR_TEAMS_CHANNEL_ID'
SlackWorkspaceId: 'YOUR_TEAMS_WORKSPACE_ID'
You can refer this documentation of Cloud Formation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Chatbot.html
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago