< Home

I am a huge fan of Firefox, it is open-source, it supports the free web and it is amazingly fast. Not only that but their addon multi-account containers is an addon I have yet to see adopted by any other browser. This is like being able to use the web on steroids. Work and private accounts are strictly contained, Google websites go into their own container, your five secret accounts where you talk to yourself are much easier to manage,…

And… I also use it with AWS. As many organizations use multiple accounts it can become very irritating using different browsers, private windows,… for switching between those accounts. No, I just use Firefox containers and open up all my different consoles without the need for signing in and out.

Now, another very handy tool I just read about a couple weeks ago is aws-vault. This is a tool to easily store and access your AWS credentials or log-in into your roles through another account. I started using it but when using the command aws-vault login <profile> I encountered the problem that I first needed to log-out out of my previously used profile as AWS Vault could not do this.

This annoyed the hell out of me. So I did what any annoyed person does. I filed a Github issue and thought “yeah, have fun anonymous gal/guy, you fix it!” But, as the past has taught me many times over, open-source also means contributing to projects, not only leeching. Contributions can be as simple as sharing an idea, a first step to an implementation or even just fixing some documentation that was lacking.

So I cloned the repository, installed Golang and started coding as my proficiency in Golang was expert level after doing the basic hello-world a couple of years ago.

Good thing the code wasn’t that hard to comprehend and after playing around with it for an half an hour, I succeeded in my set-up.

With the combination of Firefox, Multi-Containers and Open-Url-In-Container I am now able to use aws-vault with the -f parameter which will open the console in a container with the name of the profile!

See a small video of this in action

Installation

  1. Download the superior browser Firefox
  2. Install the addon Multi-Containers
  3. Install the addon Open-Url-In-Container
  4. (Optional) Don’t forget about the following privacy addons ClearURLs, DecentralEyes, HTTPS Everywhere, uBlock origin
  5. Download it from my fork or continue to step 6
  6. Clone the forked git repository
  7. Build with go build .

That’s it! Hope I have made some people lives much easier 😅

< Home