User Tools

Site Tools



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

Link to this comparison view

github_awscli [2019/01/25 14:40] (current)
pi created
Line 1: Line 1:
 +===== GitHub & AWScli Setup =====
 +==== 1.0 --- Install Git ====
 +<​code>​sudo apt update
 +sudo apt install git</​code>​
 +You can confirm that you have installed Git correctly by running the following command:
 +<​code>​git --version</​code>​
 +==== 1.1 --- Setting Up Git ====
 +<​code>​git config --global "Your Name"
 +git config --global "​"</​code>​
 +We can see all of the configuration items that have been set by typing:
 +<​code>​git config --list</​code>​
 +The information you enter is stored in your Git configuration file, which you can optionally edit by hand with a text editor like this:
 +<​code>​nano ~/​.gitconfig</​code>​
 +==== 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:
 +<​code>​sudo apt-get install python-pip
 +sudo apt-get install python3-pip
 +sudo apt-get install awscli</​code>​
 +Now install AWS CLI using PIP with the following command:
 +<​code>​pip install awscli --upgrade --user
 +pip3 install awscli --upgrade --user</​code>​
 +Now you can run AWS CLI with the following command:
 +<​code>​python -m awscli --version
 +python3 -m awscli --version
 +aws --version</​code>​
 +==== 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:
 +<​code>​python -m awscli configure
 +python3 -m awscli configure
 +aws configure</​code>​
 +<​code>​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</​code>​
 +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 ====
 +  * DigitalOcean [[https://​​community/​tutorials/​how-to-install-git-on-ubuntu-18-04#​setting-up-git]]
 +  * LinuxHint [[https://​​install_aws_cli_ubuntu/​]]
github_awscli.txt · Last modified: 2019/01/25 14:40 by pi