https://github.com/bytekast/springboot-aws-lambda
https://github.com/bytekast/springboot-aws-lambda
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bytekast/springboot-aws-lambda
- Owner: bytekast
- License: apache-2.0
- Created: 2017-03-20T14:09:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T03:59:45.000Z (over 8 years ago)
- Last Synced: 2025-03-25T01:22:04.867Z (over 1 year ago)
- Language: Groovy
- Size: 24.4 KB
- Stars: 39
- Watchers: 6
- Forks: 37
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# springboot-aws-lambda
Example bootstrap project for creating and deploying a [Spring Boot](https://projects.spring.io/spring-boot/) application to [AWS Lambda](https://aws.amazon.com/lambda/) using the [Serverless Framework](https://serverless.com).
Note: This example uses an in-memory H2 database that is created and initialized when the Lambda function is first invoked. You may notice delay in **"cold starts"**.
### Prerequisites
- Create an [Amazon Web Services](https://aws.amazon.com) account
- Install and set-up [Serverless Framework CLI](https://serverless.com)
- Install [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
### Build and Deploy
- To build, run `./gradlew clean build`
- To deploy, run `serverless deploy`