Building a Serverless ToDo Task Application using AWS SAM with AWS Lambda, API Gateway and DynamoDB

Amit Rai
6 min readMay 4, 2024

Introduction

The purpose of this article is to give you a learning experience of the AWS Serverless Application Model (SAM) while building a Serverless Application with AWS Lambda, Amazon API Gateway, and Amazon DynamoDB.

What is a Serverless Application Model (SAM)?

The AWS Serverless Application Model (SAM) is a tool, designed to build and manage serverless applications on AWS.

Serverless applications are ones where you don’t have to worry about managing servers by yourself, instead, you focus on writing code.

When you use SAM, you write a configuration file called a template that describes your serverless application. This file is a CloudFormation template but includes some shortcuts and extras that are specifically useful for serverless setups. When you deploy your application using SAM, it translates your configuration into a standard CloudFormation template and then uses CloudFormation to set up your application in AWS.

This process automates the creation and connection of all the pieces needed for your serverless application to run.

SAM’s Two Components:

--

--

Amit Rai

AWS Architect | AWS DevOps | Developer | Generative AI | Enthusiastic Writer | www.linkedin.com/in/amitraikkr