🌟 We are Open Source! Check out our repository on GitHub

AWS Lambda Project Structure

A scalable and maintainable folder structure for AWS Lambda projects

File Structure

  • src
    • index.js
    • handler.js
  • package.json
  • serverless.yml
  • README.md

Directory Structure Explanation

src/

Contains the main Lambda function source code and application logic.

src/index.js

Main entry point for the Lambda function containing the handler function.

src/handler.js

Lambda function handler that processes incoming events and returns responses.

serverless.yml

Serverless Framework configuration file defining Lambda functions, events, and AWS resources.