kenken999's picture
test
63f6011
raw
history blame
550 Bytes
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