Skip to content

Instantly share code, notes, and snippets.

@whaley
Created September 25, 2011 14:47
Show Gist options
  • Select an option

  • Save whaley/1240670 to your computer and use it in GitHub Desktop.

Select an option

Save whaley/1240670 to your computer and use it in GitHub Desktop.
output
[whaley@sunspot ~/opt/ec2/credentials]
> switch_ec2_creds
0: jasonwhaley
1: client1
2: client2
Select one of [0-2] - any other input leaves creds unchanged: 2
Credentials set to /Users/whaley/opt/ec2/credentials//client2
[whaley@sunspot ~/opt/ec2/credentials]
> ls -lh
total 16
lrwxr-xr-x 1 whaley staff 41B Nov 5 06:37 current -> /Users/whaley/opt/ec2/credentials//client2
drwx------ 2 whaley staff 612B Jun 3 10:43 client1
drwx------ 2 whaley staff 612B Jun 3 10:43 client2
drwxr-xr-x 2 whaley staff 374B Jan 18 2010 jasonwhaley
-rwxr--r-- 1 whaley staff 945B Nov 5 06:35 switch_ec2_creds.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment