The goal here is to acheive a fully serverless REST endpoint. By "fully serverless", I mean that there are no servers continually running or database resources provisioned.
This is accomplished through a single lambda function that handles crud methods (GET
,POST
,PUT
,DELETE
).
The serverless environment uses an in-memory cache for holding the data, but ultimately, I would like to have changes immediately synced to s3.
- Node.js
- Golang
Deploying this service to an AWS environment can be accomplished in more than one way:
- From your local machine, it will deploy using your locally configured AWS credentials.
- From AWS CodeBuild, using the default
buildspec.yml
# installs dependencies
sh scripts/install.sh
# runs tests with coverage
sh scripts/test.sh
open coverage.html # (optional: view the coverage report)
# builds the application
sh scripts/build.sh
# deploy the application with serverless
sh scripts/install.sh