yeei0q
Last Updated: February 25, 2016
·
977
· kjohnston
Kenny johnston avatar 500

Launching any AWS Console from Terminal

I manage a number of AWS accounts, but find that the private login URLs are hard to keep a handle on. Once you visit the URL, Amazon redirects you like crazy and you can't just bookmark wherever you land, because that specific URL you land on won't work again in the future.

Since I make use of the vanity URL for each project, I can always recall the unique part of the URL and decided to just start launching the AWS console via terminal.

Place the following in ~/.profile, or similar, and be sure to source ~/.profile:

function aws {
  open "https://$1.signin.aws.amazon.com/console"
}

To launch an AWS console:

aws somecompany

Which will open your default browser and take you to:

https://somecompany.signin.aws.amazon.com/console

Say Thanks
Respond