Skip to content

Instantly share code, notes, and snippets.

@bytekast
Last active September 22, 2017 09:32
Show Gist options
  • Save bytekast/0ef63bf31d3b7a278b8aceb8b356c0ec to your computer and use it in GitHub Desktop.
Save bytekast/0ef63bf31d3b7a278b8aceb8b356c0ec to your computer and use it in GitHub Desktop.
Serverless with Spring Boot / Spring Data
service: springboot-lambda
provider:
name: aws
runtime: java8
memorySize: 1536
timeout: 60
package:
artifact: build/distributions/springboot-lambda.zip
functions:
users:
handler: com.serverless.LambdaHandler
events:
- http:
path: users
method: get
cors: true
- http:
path: users/{lastName}
method: get
cors: true
- http:
path: users/create
method: post
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment