> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# The Amazon EC2 API tools
- URL: https://helpmonks.com/blog/the-amazon-ec2-api-tools/
- Published: 2012-11-17T00:00:00.000Z
- Updated: 2026-04-06T20:07:27.000Z
- Description: I was recently asked to provide a snapshot ID to the AWS people and provide some more details. The only message I've got, was to initiate “ec2-describe-image
- Author: Nitai
- Tags: email marketing

I was recently asked to provide a snapshot ID to the AWS people and provide some more details. The only message I’ve got, was to initiate “ec2-describe-images” in the terminal and it will give me all I need. Huh?

Looking for some answers, I found out that there are actually [EC2 API command line tools available](http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/Welcome.html?ref=helpmonks.com) and one can set them up and then interact with the AMI’s trough them. Once I knew that, it was only a matter of getting this set up properly on my MacOS X machine. Below is how I did it.

Of course, first you have to [download the EC2 API tools from AWS](http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/Welcome.html?ref=helpmonks.com). Extract them and move them to your folder (like \~/Documents/ is a good place).

After that you need to set the environment variables EC2\_HOME, AWS\_ACCESS\_KEY and AWS\_SECRET\_KEY. That is a easy one, since all you have to do is:

\[code\]export EC2\_HOME=\~/Documents/ec2\_api\_tools  
export AWS\_ACCESS\_KEY=<your access key>  
export AWS\_SECRET\_KEY=<your secret key>  
\[/code\]

(You can also add them to your .profile file to have those variables set permanently)

Once done, you can simply call all the available commands in the “/bin” directory, like:

\[code\]./ec2-describe-regions\[/code\]

(Again, you can also add the “/bin” directory to your path variable to have the tools available everywhere in your shell)

If the above returns you some regions you are good to go and get your AWS command line geek shine.