Skip to content

Instantly share code, notes, and snippets.

@ystoneman
Last active August 4, 2019 06:18
Show Gist options
  • Save ystoneman/da5e1ca40eec61d6542e0dd7658eff18 to your computer and use it in GitHub Desktop.
Save ystoneman/da5e1ca40eec61d6542e0dd7658eff18 to your computer and use it in GitHub Desktop.
Spring Boot Lambda with the serverless framework
service: petstore
provider:
name: aws
runtime: java8
memorySize: 1512
timeout: 60
stage: ${opt:stage,'dev'}
region: ${opt:region, 'us-west-2'}
profile: ${opt:profile, "default"}
endpointType: REGIONAL
resources:
Description: Example Pet Store API written with SpringBoot with the aws-serverless-java-container library
package:
individually: true
functions:
SpringBootPetStoreApi:
package:
artifact: target/serverless-spring-boot-example-1.0-SNAPSHOT-lambda-package.zip
handler: com.amazonaws.serverless.sample.springboot.StreamLambdaHandler::handleRequest
events:
- http:
path: /{proxy+}
method: ANY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment