Have you considered using a password manager? With 1Password I'm able to save all logins for my AWS accounts and then just select the appropriate one when logging in.
I use pass (password-store). I haven't added any firefox plugin to manage that for me. So I always go back to the terminal for copy/pasting the details.