You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 3
Parameters:
SlackBotToken:
Type: String
SlackChannel:
Type: String
SlackMensionId:
Type: String
SlackUserId:
Type: String
Resources:
NotifyFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: notify/
Handler: app.lambda_handler
Runtime: python3.9
Environment:
Variables:
SLACK_BOT_TOKEN: !Ref SlackBotToken
SLACK_CHANNEL: !Ref SlackChannel
SLACK_MENSION_ID: !Ref SlackMensionId
SLACK_USER_ID: !Ref SlackUserId
Architectures:
- x86_64
Outputs:
# ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
# Find out more about other implicit resources you can reference within SAM