Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/rosswickman/aws-cloudshell-tools/llms.txt

Use this file to discover all available pages before exploring further.

update.sh downloads the latest AWS CLI v2 binary from the official AWS distribution URL, unzips it, and runs the official installer with the --update flag to upgrade in-place. The script uses sudo so elevated permissions are needed — CloudShell provides these by default.

Run the command

curl -LfsS https://link.rwick.it/aws-cloudshell-update | bash
This script runs sudo commands and downloads a binary from awscli.amazonaws.com. Only run it in trusted CloudShell sessions. Review the script source before executing.

What the script does

scripts/update.sh
#!/bin/bash

echo ""
echo "Updating AWS CLI v2..."
echo ""

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q -o awscliv2.zip
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update

echo ""
echo "AWS CLI v2 updated!"
echo ""
The installer targets x86_64 Linux, which matches the AWS CloudShell environment architecture.

Step-by-step breakdown

1

Download

curl fetches the official awscli-exe-linux-x86_64.zip from awscli.amazonaws.com into the current directory.
2

Unzip

unzip -q -o quietly extracts the archive, overwriting any existing files.
3

Install

sudo ./aws/install runs the bundled installer with:
  • --bin-dir /usr/local/bin — symlinks the aws binary here
  • --install-dir /usr/local/aws-cli — extracts the CLI package here
  • --update — allows upgrading an existing installation
4

Confirm

The script prints “AWS CLI v2 updated!” on success.

Verify the update

After the update completes, run the versions script to confirm the new AWS CLI version is active:
curl -LfsS https://link.rwick.it/aws-cloudshell-versions | bash
See View Versions for full details on what the versions script checks.

Build docs developers (and LLMs) love