0PricingLogin
Serverless Backend with AWS Lambda & API Gateway · Lesson

Deploying SAM Applications

Use the SAM CLI to build, test locally, and deploy your serverless applications to AWS, managing different environments.

Introduction to SAM CLI

Welcome to deploying SAM applications! The AWS Serverless Application Model Command Line Interface (SAM CLI) is your best friend for building and managing serverless projects.

It extends AWS CloudFormation to simplify defining serverless resources. The SAM CLI provides commands to build, test, and deploy your serverless applications.

Building Your Application

Before deploying, your SAM application needs to be built. The sam build command takes your application code and dependencies, then prepares them for deployment.

  • It packages dependencies (e.g., Python libraries).
  • It transpiles code if needed (e.g., TypeScript to JavaScript).
  • It creates a deployable artifact in a .aws-sam/build directory.

All lessons in this course

  1. Introduction to AWS SAM
  2. Defining Serverless Resources
  3. Deploying SAM Applications
  4. Local Testing and Debugging with SAM CLI
← Back to Serverless Backend with AWS Lambda & API Gateway