DevOps in a Serverless Environment: 7 Best Practices

7 Best Practices of DevOps in a Serverless Environment

Define the Process Before Implementing It

Document the Solution

  • Playbooks
  • Checklists
  • Templates
  • Any other documentation that makes the processes consistent and repeatable
  • Folder structure
  • Build file location
  • Location of supporting DevOps files like deploy scripts

Use Source Control and a Good Branching Model

Use Automation

  • Deployments
  • QA
  • Security checks

CI/CD in the Lower Environments, Manual Approvals for Production

Use Infrastructure as Code as Much as Possible

  • CloudFormation: AWS CloudFormation templates describe resources and dependencies for stack deployments
  • SAM: Serverless Application Model (SAM) is an open-source framework used for IaC
  • Serverless Framework: Another open-source framework for IaC, written in Node.js for AWS Lambda
  • Terraform: A multi-cloud tool for IaC

Review Measures and Goals

  • Number of rollbacks
  • Deployment success
  • Deployment time
  • Bugs caught in QA
  • Downtime
  • Etc.

--

--

--

Aaron’s passion for technology drives him to find innovative ways to help advance organizations through technology.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

6 Random Module Functions of Python

{UPDATE} Ataque de Lobos 3D Mejores Juegos de Carreras de Animales para Niños Gratis Hack Free…

Duality of Coding Part 2: “Hello, World!”

a chocolate cream pie with the mathematical pi symbol cast in chocolate sitting on top

How to create effective unit testing with Java

An Introduction to Practical Data Scraping

Latest Java Download For Mac For Google Chrome

Semi-Stateless Initial Sync Experiment

What is an Object in Programming?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aaron Lieberman

Aaron Lieberman

Aaron’s passion for technology drives him to find innovative ways to help advance organizations through technology.

More from Medium

Rescue Your Soul From AWS CDK Dependency Hell and Improve Your DevEx With 3 Musketeers

Building a serverless charity store on AWS

Retrieve an SSM parameter inside an AWS Lambda function the easy way

Answering the Biggest AWS Lambda Questions