Showing posts with label cli. Show all posts
Showing posts with label cli. Show all posts

Thursday, April 23, 2015

What is the AWS Command Line Interface? (47 of 285 technotes for 2015)



The AWS Command Line Interface is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.


  • Download CLI Tools - unzip it and keep it at a location - say c:aws_cliec2-api-tools-1.7.3.2. This is your EC2_HOME.
  • Set Java_HOME & EC2_HOME environment variables
  • add  %JAVA_HOME%/bin; %EC2_HOME%/bin to the PATH variable
  • Set 

    AWS_ACCESS_KEY & 

    AWS_SECRET_KEY environment variable
  • execute the command in command promt- c:> ec2-describe-regions (see image below)
image

All the commands are available at the EC2_HOMEbin directory

Or

You can simple use the MSI (for WIndows) - see below

and set the “Access Key” and the “Secret Key” using the command “aws configure”.

References: