To start building SAM-based applications, we must first install the SAM CLI, set up AWS credentials, and initialize a simple SAM application.
You can refer to: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
If you have already set up AWS credentials from previous posts, you can skip this step.
Open IAM console.
Click Users on the left menu.
Click the Create user button.

At Step 1: Specify user details page:
sam-admin.
At Step 2: Set permissions page:

At Step 3: Review and create page:

At Step 4: Retrieve password page:

At sam-admin page:

Scroll down to the Access keys section:

At Step 1: Access key best practices & alternatives:

At Step 2: Set description tag:

At Step 3: Retrieve access keys:

Run the following command using the terminal on your device:
aws configure
ap-southeast-1).json or skip this.
Run the command below at the directory where you want to deploy the application:
sam init
Then select the following options:
Which template source would you like to use?
1 - AWS Quick Start Templates
2 - Custom Template Location
Choice: 1
Choose an AWS Quick Start application template
1 - Hello World Example
2 - Data processing
3 - Hello World Example with Powertools for AWS Lambda
4 - Multi-step workflow
5 - Scheduled task
6 - Standalone function
7 - Serverless API
8 - Infrastructure event management
9 - Lambda Response Streaming
10 - GraphQLApi Hello World Example
11 - Full Stack
12 - Lambda EFS example
13 - Serverless Connector Hello World Example
14 - Multi-step workflow with Connectors
15 - DynamoDB Example
16 - Machine Learning
Template: 1
Use the most popular runtime and package type? (python3.13 and zip) [y/N]: y
Would you like to enable X-Ray tracing on the function(s) in your application? [y/N]: N
Would you like to enable monitoring using CloudWatch Application Insights? [y/N]: N
Would you like to set Structured Logging in JSON format on your Lambda functions? [y/N]: N
Project name [sam-app]: fcaj-book-shop

You have successfully created a sample SAM project. Next, we will edit that project according to our application architecture.