--

Serverless

The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML. During deployment, SAM transforms and expands the SAM syntax into AWS CloudFormation syntax, enabling you to build serverless applications faster. https://aws.amazon.com/serverless/sam/

How to set up a SAM project ?

Open Terminal window and type sam init for the boilerplate code.

Open the project in visual studio code
Run the build to make sure build is working
Running the sam local invoke allow to test the code locally before pushing.

sam deploy — guided will work on interactive mode to choose region and other required parameters.

Below are the SAM Commands

--

--