/lambda-layer-poc

POC about how to use AWS lambda layers on a SAM based project

Primary LanguageKotlinApache License 2.0Apache-2.0

lambda-layer-poc

This project shows how to implement an AWS lambda function using a layer.

An AWS lambda layer can help to decouple some core functionalities between lambda functions avoiding to repeating code and common configurations.

Project Architecture

This project is divided into two modules: api and repository.

  • api contains al business logic.
  • repository is the data access layer.

repository uses DynamoDb to access to the project data, but this module is build as an AWS Lambda Layer to reduce api artifact size.

Note: This project can be optimized to the infinite (creating new layers, for example)