Building and Deploying Serverless Applications with AWS SAM

Building and Deploying Serverless Applications with AWS SAM
Building and Deploying Serverless Applications with AWS SAM

CLOUD LABS

Building and Deploying Serverless Applications with AWS SAM

In this Cloud Lab, you’ll be first introduced to the SAM templates and command line interface (CLI). Then, you’ll learn to build and deploy a full stack web application using SAM.

10 Tasks

intermediate

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

A through understanding of SAM template and CLI
Hands-on experience deploying serverless resources using SAM
The ability to draw comparisons between SAM and CloudFormation
Working knowledge of deploying a full stack web application using SAM

Technologies
SAM
Lambda logoLambda
S3 logoS3
API Gateway logoAPI Gateway
DynamoDB logoDynamoDB
Cloud Lab Overview

AWS Serverless Application Model (SAM) helps you deploy serverless resources on the cloud using a simple template. The SAM template builds on the CloudFormation template. However, it deploys serverless services in fewer lines of code.

In this Cloud Lab, you’ll begin by understanding the SAM template and command line interface (CLI) with a Hello World example and get hands-on experience with SAM. Next, you’ll build and deploy a full stack serverless web application using SAM. You’ll set up a simple table to store data. Then, you’ll set up Lambda functions to perform CRUD operations on the database. Next, you’ll set up an API Gateway to create a REST API and route your HTTP requests to the Lambda functions. Finally, you’ll learn to host the applications frontend on an S3 bucket and access the website by enabling static website hosting of an S3 bucket.

By the end of this Cloud Lab, you’ll build and deploy your applications using a SAM template and get familiar with the advantages of the SAM template while building serverless workloads on AWS.

The illustration below shows the infrastructure that you’ll build in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.SAM Templates and CLI
Get Started with SAM
Get Started with SAM CLI
3.Full Stack Web Application
Provision a DynamoDB Table
Create Lambda Functions
Set Up an API Gateway
Set Up an S3 Bucket
Deploy the React Frontend to the Bucket
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image