serverless-sam
Version:
Serverless framework plugin to export AWS SAM templates for a service
21 lines (18 loc) • 492 B
YAML
service: aws-node-twilio
provider:
name: aws
runtime: nodejs4.3
environment:
# replace these env variables with your twilio account values
TWILIO_ACCOUNT_SID: YOUR-TWILIO-ACCOUNT-SID-HERE
TWILIO_AUTH_TOKEN: YOUR-TWILIO-AUTH-TOKEN-HERE
TWILIO_PHONE_NUMBER: YOUR-TWILIO-PHONE-NUMBER-HERE
functions:
sendText:
handler: handler.sendText
events:
- http:
path: api/sendText
method: post
integration: lambda
cors: true