Skip to content

Instantly share code, notes, and snippets.

@gbhorwood
Created May 6, 2019 22:05
Show Gist options
  • Save gbhorwood/f146a5577bedcf2c65112ed03392c165 to your computer and use it in GitHub Desktop.
Save gbhorwood/f146a5577bedcf2c65112ed03392c165 to your computer and use it in GitHub Desktop.
AWS lambda simple serverless.yml
service: mailinglist # NOTE: update this with your service name
provider:
name: aws
runtime: python3.7
functions:
postSubscription:
handler: mailinglist.postSubscription
events:
- http:
path: subscriptions
method: post
cors: true
getSubscriptions:
handler: mailinglist.getSubscriptions
events:
- http:
path: subscriptions
method: get
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment