Automating CI/CD workflow for serverless apps with CircleCI

Rupak Ganguly
14 min readAug 23, 2018

It’s pretty easy to set up a simple Serverless app with the Serverless Framework. But — in real life, the process of continuous integration and deployment (CI/CD) of that application can be much more involved.

Never fear! In this post, we’re going to take a deep look at the end-to-end workflow of automating a CI/CD process for a serverless application via CircleCI.

We will cover:

  • Defining the CI/CD process
  • Creating an app with testable code
  • Preparing the app for automation
  • Integrating with a CI/CD toolchain
  • End-to-end automation for our app
  • Advanced deployment patterns

The Basics: CI/CD Overview

In an agile development environment, small teams work autonomously and add a lot of churn to the code base. Each developer works on different aspects of the project and commits code frequently.

This is a healthy practice, but it comes with some challenges. Without close watch and proper communication about changes, the updates can cause existing code to break. To minimize manual scrutiny and redundant communication across teams, we need to invest in automating CI/CD processes.

Figure 1: The CI/CD Process Flow

--

--

Rupak Ganguly

Thought leader, serverless & cloud technology advocate, problem solver, API Aficionado, enterprise architect with hands-on industry experience. rupakganguly.com