Am currently managing several AWS accounts and doing so from command line can be annoying. Every time I have to remove the Public and Private certificate in .ec2 folder and manually replace them with another account to gain access for it.
is there a way for me to handle several certificates/accounts?
I followed the manual in here http://www.robertsosinski.com/2008/01/26/starting-amazon-ec2-with-mac-os-x/ when I first created the command-line
Here’s what I do:
Create the following script and save it as
~/bin/aws.sh:Then create the following alias:
Then I just execute it: