Bash script to install the latest released version of the AWS CLI v2 from the distrubuted source.
Using this method to exectue the CLI under a MacBook M1 laptop as a native ARM binary - rather than falling back to Rosetta. Currently the offically packaged macOS .pkg
doesn't support both Intel/M1 architectures.
Script designed to be re-run - will blow away an existing install and re-install the latest available version.
Note
This install script assumes you have installed a suitable version of Python 3 - has been tested against Python 3.10.11
under macOS Sonoma v14.6.1
.
$ ./install.sh
$ which aws
/usr/local/bin/aws
$ which aws_completer
/usr/local/bin/aws_completer
$ aws --version
aws-cli/2.15.45 Python/3.10.11 Darwin/23.4.0 source-sandbox/arm64 prompt/off
that python 3.10.11 note is crucial if only have 3.9 installed from default macos/work image (3.9 doesn't work!!!)