User Tools

Site Tools


awscli-software

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
awscli-software [2021/11/22 12:08] aorthawscli-software [2021/11/22 13:26] (current) aorth
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: https://pypi.org/project/awscli+  * Link: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
  
 ===== 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 "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.4.0.zip" -o "awscliv2.zip" 
-python3 -m venv /export/apps/awscli/1.22.10 +$ unzip awscliv2.zip 
-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.txt · Last modified: 2021/11/22 13:26 by aorth