hands-on lab

Getting Started with the AWS SAM CLI

Difficulty: Beginner
Duration: Up to 1 hour
Students: 2,499
Rating: 3.5/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

The AWS Serverless Application Model (SAM) CLI is a tool to build serverless applications that are defined using AWS SAM templates. The CLI consists of commands that allow you to define, test, and deploy your serverless applications.

In this lab, you will work with the AWS SAM CLI in an IDE environment that is configured to an AWS account. The IDE environment will allow you to initialize, configure, and deploy a quick start application to AWS, without using the AWS console directly. You will deploy a simple Hello World application to experience the easy-to-use commands provided by the AWS SAM CLI.

Learning Objectives

Upon completion of this beginner-level lab, you will be able to:

  • Initialize an AWS SAM project
  • Deploy a simple API and Lambda function using the SAM CLI

Intended Audience

  • Cloud Architects
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • AWS Serverless Application Model (SAM)
  • AWS Lambda
  • Amazon API Gateway

The following content can be used to fulfill the prerequisite:

Environment before

Environment after

Covered topics

Lab steps

Setting up the AWS SAM CLI
Initializing an AWS SAM Project
Deploying an AWS SAM Application