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/builddirectory.
All lessons in this course
- Introduction to AWS SAM
- Defining Serverless Resources
- Deploying SAM Applications
- Local Testing and Debugging with SAM CLI