Writing your first serverless application with SAM
In this section, we will create a few serverless applications to cover most of SAM's capabilities. The first one—Hello, World—will be created using AWS Quick Start templates, so we can quickly get hands-on experience with SAM.
The second—Party Planner—will be developed from scratch. You don't have to worry—the actual code is not in the scope of this book and the actual focus will be on creating a complex application with more than one function.
Before we begin development, let's make sure we have everything we need.
Prerequisites
In order to run the SAM commands, we need to install SAM and its dependencies first. Depending on the OS you have, the steps will be different. The following steps are for installation on macOS.
The guides on how to install SAM on other OSes can be found at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless...