User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
awscli-software [2021/11/22 12:08]
awscli-software [2021/11/22 13:26] (current)
Line 5: Line 5:
 ===== Information ===== ===== Information =====
-  * Version: 1.22.10+  * Version: 2 (2.4.0)
   * Added: February, 2020   * Added: February, 2020
   * Updated: November, 2021   * Updated: November, 2021
-  * Link:  * Link:
 ===== Usage ===== ===== Usage =====
Line 16: Line 16:
 Load one version into your environment and run it: Load one version into your environment and run it:
-<code>$ module load awscli/1.22.10 +<code>$ module load awscli/2 
-$ aws</code>+$ aws --version 
 +aws-cli/2.4.0 Python/3.8.8 Linux/3.10.0-1160.42.2.el7.x86_64 exe/x86_64.centos.7 prompt/off</code>
 ===== Installation ====== ===== Installation ======
Line 23: Line 24:
 Notes from the sysadmin during installation: Notes from the sysadmin during installation:
-<code>sudo mkdir -p /export/apps/awscli/1.22.10 +<code>cd /tmp 
-$ sudo chown -R aorth:aorth /export/apps/awscli/1.22.10 +$ curl "" -o "" 
-python3 -m venv /export/apps/awscli/1.22.10 +$ unzip 
-source /export/apps/awscli/1.22.10/bin/activate +$ sudo mkdir -/export/apps/awscli/v2 
-$ pip install --upgrade setuptools pip +sudo chown aorth /export/apps/awscli/v2 
-$ pip install awscli==1.22.10 +# install will use the v2 directory... 
-$ sudo chown -R root:root /export/apps/awscli/1.22.10</code>+$ ./aws/install --install-dir /export/apps/awscli 
 +$ sudo chown -R root:root /export/apps/awscli/v2</code> 
 +**Note:** As of version 2 Amazon has switched from a Python package to a static binary that seems to include its own Python etc. Their installer is annoying as it tries to create directories, make symlinks, manage versions, etc. My strategy is to create a v2 directory and let it do what it wants there (non-root) and then keep the environment module always pointing to the "current" link.
awscli-software.1637582910.txt.gz · Last modified: 2021/11/22 12:08 by aorth