Amazon has two toolsets that have to be used for ami creation ec2 api tools and ec2 ami tools which both require EC2_HOME environmental variable to be set. So it seems like I can only use one of them toolsets at a time in a single terminal? and if I have to use another toolset - I have to export EC2_HOME variable to correct location every time I need to witch toolset - is this correct?
What would one do if I want to use both toolsets from single terminal. Iknow that I can open multiple terminals and setting EC2_HOME to various location that way - but it seems like a bit contr-productive.
any ideas?
When I install the standard
ec2-api-tools
andec2-ami-tools
packages on Ubuntu, things just work. I do this with:When I install the EC2 API tools and AMI tools manually by downloading them from the pages you indicate (e.g., when I need the very latest versions) then I simply copy the contents of each bin, lib, and etc directory in to a single location like:
Copy/move/extract all bin, lib, etc files and subdirectories from both EC2 downloaded zip files into those locations and then set a single envariable value (add this to
$HOME/.bashrc
or equivalent):Once this is done, all commands should work from both sets of tools.
Here's my recipe for the tools you want to install:
You can also drop in the RDS tools, IAM tools, and the rest of the AWS command line tools.
This is vague and therefore probably not going to be me any rep, but in short, if you look at the man page for the tools you are using I think you will find that there are other ways to supply the variables than setting an environment variable. You can probably use command line switches to supply the variables each individual tool needs.