Log in to multiple AWS accounts in one browser — the easy way

Log in to multiple AWS accounts in one browser — the easy way


Related discussions:

Or use Firefox container tabs like everyone else.

that works, though i think the benefit of this is that it also assumes the role in your CLI and can let you jump to specific services too. works best for people who have a bunch of roles or prefer to mostly work in their CLI. for everyone else though, just using Firefox containers is the more minimalist choice.

Don’t you have to manually name and toggle container tabs though?

Well yeah. Granted is what this article is taking about :slight_smile:

Your comment made it sound like you don’t need anything else, just use Firefox container tabs.

I don’t use Granted. I just use the “Firefox Multi-Account Containers” extension, aka container tabs.
We have SSO (which they renamed recently) and just login when i open a tab. I have several tab containers set up and color coded. So i open a blue tab and login to account A, any subsequent blue tab open will use account A’s credentials. Etc.
There is a firefox plugin that stacks Granted on top of container tabs as mentioned in the comments here. I don’t really have a need for that, as I use SSO instead of profiles. Perhaps I am missing some awesome better way of doing things, and someone can set me straight, but this has been working well for my use case.

Firefox containers and greasemonkey scripts

Ah, I see. This would be handy for swapping roles while running CDK stuff. Good stuff.

This looks like a solution to a real problem but a solution that is annoying enough to not use. I deal with 30+ accounts on a daily basis but I don’t think this is going to do it for me. Firefox containers… If my company didn’t limit us to 16GB of ram on our laptops this would actually be viable.

…I’m not following…how hard is it to run:
$ assume -c [profile name]

:man_shrugging:

Each tab takes ram. You get to enough accounts you are into swap/virtual memory. Firefox loves to eat ram in certain contexts.

The granted Firefox extension has a button to clear containers, so this shouldn’t be an issue.

You can close the tabs and the containers still exist… nobody is asking you to keep a billion container tabs open at once. Close them when you’re finished and you can run assume again next time you need a profile.

It looks like this extension also uses container tabs, so it’s adding an easy way to launch the right profile from the terminal. I wonder if it also includes shell completion for profile names. That would be handy.

you can get a selectable list of all your profiles by running just assume or assume -c. currently there should also be shell autocompletion for fish, zsh and bash (but we’re still in the process of testing it!)

The Granted project (the assume command) and Firefox container tabs are not mutually exclusive. The former supports the latter, and it’s a real time saver.

we do it mostly for security reasons. our production accounts are locked down a lot stricter than our non-production accounts. in our own workflow, we also have a lot clutter in our testing environments since our other tool requires spinning up a bunch of resources, so it makes sense to keep that separated from what we need in production.

Amazon Web Services suggest that you segregate environments by accounts: It can be found in the Well Architected Security Pillar: https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/welcome.html

fortunately we don’t have any customer info in our dev or qa accounts - that’s what the release one is for!