Useful commands for dealing with AWS and opsworks across multiple IAM accounts.
gem install omc
omc supports a configuration file to specify your account rather than providing
it with the -a
flag. Formatted like so:
account = "zerg"
It can be located at ~/.omcrc
, ~/.config/omcrc
, or local to where you're running
your command .omcrc
omc works off of aws_cred_vault and requires an ~/.aws_cred_vault file to exist. This file should be populated with your different IAM accounts and users.
Below is an example of a valid ~/.aws_cred_vault
[accounts.protoss.fenix]
access_key = "fenix"
secret = "zealot!"
[accounts.protoss.tassadar]
access_key = "tassadar"
secret = "lightning!"
[accounts.terran.raynor]
access_key = "raynor"
secret = "abcd1234"
omc help
Accepted ssh options:
-R 3000:localhost:3001 # Forwards port 3000 on the remote host to port 3001 on the localhost
-A # Forward agent
Please the the ssh help for more detail.