hands-on lab

Introduction to the Serverless Framework

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 492
Rating: 4.8/5
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.

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

Prerequisites

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:

Updates

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

Environment before

Environment after

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