Skip to content

Instantly share code, notes, and snippets.

@tonyspiro
Created July 6, 2018 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonyspiro/cdcd4dfd00cce5168f24bb80798aeba6 to your computer and use it in GitHub Desktop.
Save tonyspiro/cdcd4dfd00cce5168f24bb80798aeba6 to your computer and use it in GitHub Desktop.
# serverless.yml
service: cosmic-serverless
provider:
name: aws
runtime: nodejs6.10
stage: dev
region: us-east-1
environment:
COSMIC_BUCKET: ${env:COSMIC_BUCKET}
COSMIC_READ_KEY: ${env:COSMIC_READ_KEY}
functions:
app:
handler: app.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'
plugins:
- serverless-offline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment