Skip to content

Instantly share code, notes, and snippets.

@nimboya
Created October 20, 2018 12:41
Show Gist options
  • Save nimboya/22296645f3816ac4aca3f1b0fd05c221 to your computer and use it in GitHub Desktop.
Save nimboya/22296645f3816ac4aca3f1b0fd05c221 to your computer and use it in GitHub Desktop.
A Serverless Framework Configuration File
service: kannel_sms_sender
app: kannel_sms_sender_service
provider:
name: aws
runtime: nodejs8.10
environment: ${file(env.yml):${self:provider.stage}}
region: eu-west-1
functions:
getBase:
handler: app.handler.getBase
events:
- http:
path: /
method: get
sendMessage:
handler: app.handler.sendMessage
events:
- http:
path: /send
method: post
cors: true
plugins:
- serverless-offline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment