User Tools

Site Tools


GitHub & AWScli Setup

1.0 --- Install Git

sudo apt update
sudo apt install git

You can confirm that you have installed Git correctly by running the following command:

git --version

1.1 --- Setting Up Git

git config --global "Your Name"
git config --global ""

We can see all of the configuration items that have been set by typing:

git config --list

The information you enter is stored in your Git configuration file, which you can optionally edit by hand with a text editor like this:

nano ~/.gitconfig

2.0 --- Install AWScli

AWS CLI is a Python module. The advantage of installing AWS CLI as Python module is that you always get up to date version of AWS CLI. AWS CLI is available for Python 2.x and Python 3.x. You need Python PIP:

sudo apt-get install python-pip
sudo apt-get install python3-pip
sudo apt-get install awscli

Now install AWS CLI using PIP with the following command:

pip install awscli --upgrade --user
pip3 install awscli --upgrade --user

Now you can run AWS CLI with the following command:

python -m awscli --version
python3 -m awscli --version
aws --version

2.1 --- Configure AWS Account Using AWS CLI

First you have to configure the AWS CLI client with your AWS account’s credentials. To do that, run the following command:

python -m awscli configure
python3 -m awscli configure
aws configure
AWS Access Key ID [None]:    <--- your Access Key ID
AWS Secret Access Key [None]:    <--- your Secret Access Key
Default region name [None]: ap-southeast-1
Default output format [None]: json

The configuration files of AWS CLI is stored in ~/.aws/config and ~/.aws/credentials file.


Now if you want to use different login information, all you have to do is delete ~/.aws/config and ~/.aws/credentials file with the following command and run aws configure again.

x.x --- References

github_awscli.txt · Last modified: 2019/01/25 14:40 by pi