- Download the AWS SAM CLI zip file to a directory of your choice.
- Verify the integrity and authenticity of the downloaded installer files by generating a hash value using the following command:
sha256sum aws-sam-cli-linux-x86_64.zip
The output should look like the following example: <64-character SHA256 hash value> aws-sam-cli-linux-x86_64.zipCompare the 64-character SHA256 hash value with the one for your desired AWS SAM CLI version in the AWS SAM CLI release notes on GitHub. - Unzip the installation files into the
sam-installation/
subdirectory.unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
- Install the AWS SAM CLI.
sudo ./sam-installation/install
- Verify the installation.
sam --version
On successful installation, you should see output like the following: SAM CLI, version 1.18.0
Home/
Technology/Installing the AWS SAM CLI on Linux
Leave a comment