Have searched online but did not find anything related to this.
Does anyone know if there is any way to install a specific version of AWS CLI in Unix? Even with the AWS Documentation I didn't find something configurable for this.
Have searched online but did not find anything related to this.
Does anyone know if there is any way to install a specific version of AWS CLI in Unix? Even with the AWS Documentation I didn't find something configurable for this.
Broadly speaking, this is how you install the AWS CLI in a Unix/Linux environment:
pip install awscli
Since it uses Python's pip, standard version syntax applies. To install a specific version, I looked through the release notes to pick one out, then used the syntax seen in the linked stackoverflow question:
pip install awscli==1.5.0
Note that in a non-one-off case, I'd suggest giving an installable range rather than a specific version, if possible:
pip install "awscli>=1.5.0,<=1.6.0"
In this case I've pretended you need something that exists in the 1.5 range but was removed in 1.6. Also note the quotes are required, otherwise you will be redirecting output to a file named "=1.5.0".
For anyone not wanting to use pip the AWS CLI V2 URLs are formatted like so:
https://awscli.amazonaws.com/AWSCLIV2-2.X.Y.msi
https://awscli.amazonaws.com/AWSCLIV2-2.X.Y.pkg
https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.X.Y.zip
https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.X.Y.zip.sig
For example v2.0.0 on linux the links would be:
https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.0.zip
https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.0.zip.sig
For AWS CLI V1 the URLs for the bundled installer are formatted:
https://s3.amazonaws.com/aws-cli/awscli-bundle-1.X.Y.zip