Setting Up the Prerequisites
Explore how to set up essential tools like AWS SAM CLI, Python, AWS CLI, and Docker for local serverless application development. Understand the role of each tool in building, testing, and debugging Lambda functions on your machine before deployment.
We'll cover the following...
This chapter explains how to install and configure AWS SAM (Serverless Application Model) on your local machine.
The AWS SAM
The AWS Serverless Application Model (SAM) is an open-source framework that simplifies building, testing, and deploying serverless applications on AWS. It consists of two main parts:
SAM Templates: A shorthand syntax (extension of CloudFormation) to define your functions, APIs, and databases.
SAM CLI: A command-line tool used to locally build, test, and deploy those applications.
Unfortunately, as is the case with much AWS software, these products have overlapping names. Nobody outside Amazon really cares too much about the distinction, so informally they all get called SAM. Although it is possible to use different SAM products separately, in most cases they work together, so a clean separation between them isn’t especially important. In this chapter, you’ll learn how to set up the SAM CLI, which runs on developer machines.
This product was previously called SAM Local, and was later renamed to ...