Set Up AWS EC2 CLI Tools on CentOS , RHEL Linux or Mac OS X

Spread the love

The Amazon command line interface tool is called as in short EC2 CLI tools that is composed in Java and included shell scripts for most of the linux and windows based machines. Before configuring EC2 API CLI tools , we need to install java JRE ( Java Runtime Environment) because tool are wrtten in Java Programming Language and also set Environment of Java .

Here we will follow below steps to setting up the cli on different Linux environment.

(1) Install of Java Latest Version

(2) Download the EC2 CLI tools

(3) Setting up CLI tool location

(4) Cinfigure Identity Location

(5) Verify EC2 Tools Setup

(1) Installation of Java Latest Version

Earlier we have already explain on our post to install , Update and configure Java Environment on linux, You can find below two links for java install and update.Follow below links for java invironment set.

Here i have set my default region us-east-1, You will make according to you , update your ACCESS_KEY and SECRET_KEY ID.

To update and set variable in ~/.bash_profile run below command.

# source ~/.bash_profile

(4)Verify Set Up :

After set environment variable you can test through below command , Here is two basis command for check and verify setup . Run the below command , this will show a list of the aws instances which is currently connected to this account and whole information about instance like Id, DNS, ip etc in your default region.

# ec2-describe-instances

Now run the below command.You will get all region which is currently associated with this account.