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 revision Previous revision
Next revision
Previous revision
awscli-software [2020/02/03 20:53]
aorth
awscli-software [2021/11/22 13:26]
aorth
Line 5: Line 5:
 ===== Information ===== ===== Information =====
  
-  * Version: 1.17.9+  * Version: 2 (2.4.0)
   * Added: February, 2020   * Added: February, 2020
-  * Link: https://pypi.org/project/awscli/+  * Updated: November, 2021 
 +  * Link: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
  
 ===== Usage ===== ===== Usage =====
Line 15: 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.17.9 +<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 22: Line 24:
 Notes from the sysadmin during installation: Notes from the sysadmin during installation:
  
-<code>sudo mkdir -p /export/apps/awscli/1.17.+<code>cd /tmp 
-$ sudo chown aorth /export/apps/awscli/1.17.9 +$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.4.0.zip" -o "awscliv2.zip" 
-python3 -m venv /export/apps/awscli/1.17.9 +unzip awscliv2.zip 
-source /export/apps/awscli/1.17.9/bin/activate +$ sudo mkdir -/export/apps/awscli/v2 
-pip install --upgrade setuptools pip +sudo chown aorth /export/apps/awscli/v2 
-$ pip install awscli +# install will use the v2 directory... 
-$ sudo chown -R root:root /export/apps/awscli/1.17.9</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