hands-on lab

Introduction to the Serverless Framework

Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Serverless computing is one of the most interesting and useful parts the cloud offers. It allows engineers to design and code their applications, and then execute them without worrying about the underlying server infrastructure. One of the most famous paradigms Serverless computing introduced is the FaaS (Function as a Service). That means you focus more on single tasks and functions, instead of thinking about the whole application structure. It's very powerful because all the resources needed to serve and maintain the functions are handled automatically by the providers.

If you want to build a serverless application, it could be difficult to see the benefits if you don't leverage a framework to create resources to perform tasks to let the serverless application run. The Serverless Framework is a solution to easily manage the process of packaging and deployment of serverless applications. It's cloud-agnostic, so you can leverage the framework by using the most popular public cloud providers like Amazon Web Services, Google Cloud Platform, and Microsoft Azure.

In this lab, you will understand the basic components of the Serverless Framework, and you will use it to deploy your first serverless microservice with a single function in AWS.

Learning Objectives

Upon completion of this lab you will be able to:

  • Understand the basic components and principles of the Serverless Framework
  • Use the Serverless Framework CLI to perform simple commands
  • Deploy a serverless microservice using the Serverless Framework

Intended Audience

This lab is intended for:

  • Software engineers mainly focused on serverless development
  • Cloud architects that want to build and maintain a serverless cloud infrastructure


To get the most from this lab, you should have basic knowledge of Python and Serverless. To get ready, you can follow the following learning path:


February 26th, 2024 - Updated function to Python3.9

Environment before
Environment after
About the author
Learning paths

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.

Covered topics
Lab steps
Understanding the Core Components of the Serverless Framework
Initializing a Project Using the Serverless Framework
Creating and Deploying Your First Microservice With the Serverless Framework