File size: 550 Bytes
0f43f8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31

Resources:
  SlackChatBotFunction:
    Type: AWS::Serverless::Function
    Properties:
      FunctionName: !Sub 'slack-chat-bot-${AWS::Region}'
      Runtime: python3.9
      Handler: lambda_function.lambda_handler
      Environment:
        Variables:
          SLACK_BOT_TOKEN: !Sub 'xoxb-1234567890'
          SLACK_CHANNEL: !Sub 'C1234567890'
      Events:
        SlackEvent:
          Type: Api
          Properties:
            Path: /slack
            Method: post