Created
May 6, 2019 22:05
-
-
Save gbhorwood/f146a5577bedcf2c65112ed03392c165 to your computer and use it in GitHub Desktop.
AWS lambda simple serverless.yml
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: 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