Created
October 29, 2021 10:04
-
-
Save joawan/9f79f0b620dcd7f1b7092d48137ceb5b to your computer and use it in GitHub Desktop.
Serverless fil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: sls-oncall-twilio | |
provider: | |
name: aws | |
runtime: nodejs14.x | |
stage: ${opt:stage, 'dev'} | |
region: ${opt:region, 'eu-west-1'} | |
timeout: 10 | |
memorySize: 256 | |
logRetentionInDays: 14 | |
lambdaHashingVersion: 20201221 | |
plugins: | |
- serverless-plugin-optimize | |
functions: | |
bot: | |
handler: handler.handler | |
events: | |
- http: | |
path: twilio/{schedule} | |
method: post | |
request: | |
parameters: | |
paths: | |
schedule: true | |
environment: | |
PD_TOKEN: ${ssm:/sls-oncall-twilio/pd-token} | |
TWILIO_TOKEN: ${ssm:/sls-oncall-twilio/twilio-token} | |
variablesResolutionMode: 20210326 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment