User Tools

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
os:os_awscli [2026/11/07 06:39] – tmatejukos:os_awscli [2026/11/07 18:37] (current) – tmatejuk
Line 12: Line 12:
  
 === how to install awscli at jumphost-17 === === how to install awscli at jumphost-17 ===
-  mkdir -p ~/soft/downloads +  cd /tmp
-  cd ~/soft/downloads+
   curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"   curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
   unzip awscliv2.zip    unzip awscliv2.zip 
   ./aws/install -i ~/.local/aws-cli --bin-dir ~/.local/bin   ./aws/install -i ~/.local/aws-cli --bin-dir ~/.local/bin
- 
-remove temporary files 
-  cd ~/soft/downloads 
-  rm -rf aws/ 
-  rm awscliv2.zip 
  
 Add to file `~/.bashrc` line if not present : Add to file `~/.bashrc` line if not present :
Line 35: Line 29:
  
  
 +== configure awscli ==
 +Use command `aws configure` to create default configuration. You can provide your real 'AWS Access Key ID', 'AWS Secret Access Key' instead of 'A', 'B' I provided.
 +
 +  $ aws configure
 +  AWS Access Key ID [None]: A
 +  AWS Secret Access Key [None]: B
 +  Default region name [None]: us-east-1
 +  Default output format [None]: json
 +
 +Above will create two new files in ''~/.aws/'' folder. Notice file permissions. 
 +  $ tree ~/.aws -p
 +  ├── [-rw-------]  config
 +  └── [-rw-------]  credentials
  
-==== configure awscli ==== 
  
  

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information