Skip to content

Instantly share code, notes, and snippets.

@bytekast
Last active March 30, 2017 04:05
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 bytekast/48daa2ca479156c98d2735cca181ef30 to your computer and use it in GitHub Desktop.
Save bytekast/48daa2ca479156c98d2735cca181ef30 to your computer and use it in GitHub Desktop.
service: user-service
provider:
name: aws
runtime: java8
memorySize: 1536
timeout: 60
package:
artifact: build/distributions/user-service.zip
functions:
users:
handler: com.serverless.VertxHandler
events:
- http:
path: users
method: get
cors: true
- http:
path: users/{id}
method: get
cors: true
- http:
path: users
method: post
cors: true
- http:
path: users/{id}
method: put
cors: true
- http:
path: users/{id}
method: delete
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment