- 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.zipThe 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
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
- Install the AWS SAM CLI.
- Verify the installation.
sam --versionOn successful installation, you should see output like the following: SAM CLI, version 1.18.0
On: July 13, 2021
On: July 12, 2021
On: July 9, 2021
On: July 7, 2021