Project Details

Serverless Container Deployment on AWS Lambda

Deployed an OCI container image on AWS Lambda to leverage the event driven runtime model and cost saving advantages of AWS Lambda.

Project Detail

This project demonstrates the deployment of an OCI-compliant Docker container to AWS Lambda, combining the cost efficiency and scalability of serverless computing with the predictability and portability of containerized workloads. The objective was to leverage AWS Lambda's event-driven execution model while retaining the advantages of a container-based development lifecycle, such as consistent build environments, improved debugging, and simplified dependency management. Using Amazon Elastic Container Registry (ECR) for image storage and IAM roles for secure access control, the application was packaged into a container image and deployed to Lambda. This approach allows for quick, scalable, and cost-effective execution without the need to manage servers, while still benefiting from Docker's development workflow.

Key Technologies

  • Docker: For containerizing the application and managing dependencies.
  • Amazon ECR: To store and manage OCI container images.
  • AWS Lambda: To run container-based serverless functions triggered by events.
  • IAM Roles: To securely manage permissions between AWS services and Lambda functions.

Benefits

  • Cost-effective Execution: Only pays for runtime with zero idle cost.
  • Improved Portability: Consistent behavior across environments using Docker.
  • Scalability: Lambda scales automatically in response to incoming events.
  • Enhanced Security: Fine-grained access control through IAM roles.