The AWS SAM CLI is a command-line tool that helps you develop, package, and deploy serverless applications using AWS Lambda, API Gateway, and other AWS serverless services. In this step, you will install the SAM CLI to develop the serverless backend for your dynamic e-commerce website.
Install on Windows:
.msi
installer and follow the instructions to complete the installation.sam --version
.Install on macOS:
Use Homebrew to install the SAM CLI:
brew tap aws/tap
brew install aws-sam-cli
Install on Linux (Ubuntu):
On Linux, you can use apt
to install the SAM CLI:
sudo apt-get update
sudo apt-get install aws-sam-cli
Install SAM CLI from source (if needed):
The SAM CLI has been installed successfully! You can now start developing and deploying serverless applications with AWS.
Check the SAM CLI version:
After a successful installation, open your terminal (or Command Prompt on Windows) and enter the following command to check the SAM CLI version:
sam --version
Verify SAM CLI installation:
If the above command displays the version information of the SAM CLI, the tool has been installed successfully.
C:\Users\thuan>sam --version
SAM CLI, version 1.141.0