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.12.7
under macOS Sonomav14.7.2
. - Python
3.10.11
under macOS Sonomav14.6.1
.
$ ./install.sh
$ which aws
/usr/local/bin/aws
$ which aws_completer
/usr/local/bin/aws_completer
$ aws --version
aws-cli/2.23.0 Python/3.12.7 Darwin/23.6.0 source-sandbox/arm64
Tried with Python 3.13 and the make command failed. Using Python 3.12 was successful.