title: How to use multiple AWS accounts from the command line?
body: <p>I've got two different apps that I am hosting (well the second one is about to go up) on Amazon EC2.</p>
  <p>How can I work with both accounts at the command line (Mac OS X) but keep the EC2 keys &amp; certificates separate?  Do I need to change my environment variables before each ec2-* command?</p>
  <p>Would using an alias and having it to the setting of the environment in-line work?  Something like:</p>
  <pre><code>alias ec2-describe-instances1 = export EC2_PRIVATE_KEY=/path; ec2-describe-instances
  </code></pre>