chapter twelve

12 Lambda based Serverless Functions

 

This chapter covers

  • Implementing CI/CD pipeline for a Serverless based application from scratch
  • Setting up continuous deployment and delivery with AWS Lambda version
  • Separating multiple Lambda deployment environments (sandbox, staging, and production)
  • Implementing API Gateway multi-stage deployment with Lambda alias and stage variables
  • Delivering email notification with attachments upon completion of CI/CD pipelines

In the previous chapters, we learned how to write a CI/CD for a containerized application running in both Docker Swarm and Kubernetes. In this chapter, we will learn how to deploy the same application written in a different architecture.

Serverless is the fastest-growing architectural movement right now. It allows developers to develop scalable applications faster by delegating the full responsibility of managing the underlying infrastructure to the cloud provider. That said, there are several key challenges while going Serverless, one of these challenges is CI/CD.

12.1  Deploying a Lambda based Application

12.2  Creating Deployment Packages

12.2.1    Monorepo Strategy

12.2.2    Multi-repo Strategy

12.3  Updating Lambda Function Code

12.4  Hosting static website on S3

12.5  Maintaining Multiple Lambda Environments

12.6  Configuring Email Notification in Jenkins

12.7  Summary