13

I log in to AWS console often with two different accounts. Because of cookies, every time I log in to one account, it kicks me out from the other account. What are my options if I'd like to be able to have both accounts open at the same time?

I've tried using different chrome accounts, but I couldn't figure out an easy way to share all the bookmarks and extensions, along with their options.

I've also tried using Incognito window for the second AWS account, but it's also inconvenient, since it asks me to login again to every other site I visit.

8 Answers8

5

This is now possible, without having to resort to an Incognito window, but using Chrome browser's 'People' feature. It is already well described on this page: https://serverlessfirst.com/aws-console-multiple-users/

There is of course a danger that actions could inadvertently be taken in a 'prod' account that were intended for a different AWS account, so proceed with caution. The above page suggests using a different theme to make it as obvious as possible that this Chrome window is different. Chrome does at least enforce this being a separate window, i.e. you can't pull the tab in alongside other tabs which are logged into another AWS account, which should help keep it clear that it's separate.

4

Put simply, you can't the way you are wanting to. As you mentioned, the cookies are going to kick you off one when you log into the other. Incognito mode or using a different browser is your best bet. Or use a separate computer (if available). Cookies are not synced by Chrome, so using the chrome browser, with the same account, on two different devices would work.

Best of luck.

3

There is another harmless, old, and stable way to do it with the same Chrome without Incognito mode, without a different device, and by relying on the pretty convenient alt-tab key combination.

You just use the built-in option of profile/people/person/user switcher management to add (and switch between) several accounts in your browser and that will keep two completely separate Chrome instances no sharing cookies between each other.

  1. In your primary Chrome session, open one of your AWS accounts in the console as usual
  2. Now press the Profile button in your Chrome to open a persona
  3. Open your second AWS account in another console
  4. VoilĂ 
jslipknot
  • 131
3

I am in the same situation. The only thing I've found is Firefox's containers.

https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/

1

You can't achive your requirement with the same browser. Best method is to install Google Chrome Canary, Which is beta version of Google Chrome, But highly stable. I'm using it in my computer. It is same as Google Chrome. But it has new features.

Harikrishnan
  • 1,682
0

Use the chrome extension that allows to open multiple private tabs https://chrome.google.com/webstore/detail/switch-multi-account-logi/eegeianojhonjjplfnelapmfbgjbnkfe?hl=en

0

There is a new tool - granted that allows it:

https://github.com/common-fate/granted

https://docs.commonfate.io/granted/getting-started

0

The AWS console now allows multiple simultaneous logins:
https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/multisession.html https://aws.amazon.com/about-aws/whats-new/2025/01/aws-management-console-simultaneous-sign-in-multiple-accounts/

If one wishes to disable this (for example, to prevent simultaneous login to production and other AWS accounts in the same browser window, and consequent risk of accidentally taking an action in prod which was not intended in that account) this 'multi-session' support can be disabled.