-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-cli-Ubuntu-18-Ltsr
47 lines (28 loc) · 960 Bytes
/
aws-cli-Ubuntu-18-Ltsr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#Purpose: AWS-CLI
#OS: Ubuntu-18-LTS
#https://linuxhint.com/install_aws_cli_ubuntu/
#https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html#install-linux-path
sudo apt update -y
sudo apt-get install python3-pip -y
sudo pip3 install awscli --upgrade --user
python3 -m awscli --version
#python3 -m awscli configure
#This command inserts the path, ~/.local/bin in this example, at the front of the existing PATH variable.
export PATH=~/.local/bin:$PATH
#Reload the profile into your current session to put those changes into effect.
#Bash – .bash_profile, .profile, or .bash_login
#Zsh – .zshrc
#Tcsh – .tcshrc, .cshrc or .login
# We are Using Ubuntu
source ~/.profile
# AWS-CLI
aws --version
#END
##########################################################################################
#!/bin/bash
apt update -y
apt install awscli -y
apt install python3-pip -y
pip3 install --upgrade --user awscli
#END