Member-only story

Switching Between Multiple AWS Accounts

Michael Timbs
5 min readMar 8, 2020

--

Whether you use AWS across your organisation or for personal projects, it is useful to set up multiple accounts on AWS to separate your staging/test and production environments.

Separating your development and production accounts allows you to experiment in a real cloud environment without negatively impacting your production environment. It also stops staging and development environments from consuming service limit capacity for your production resources.

The naive way of doing this involves constantly logging out and back in each time you want to change accounts or setting up multiple chrome profiles that save your credentials for each account.

A better way is to leverage assumed roles via IAM permissions and Organisation Units.

AWS Organisations

Under your root AWS account, create an organisational unit. You can access the Organizations page by clicking on your account dropdown in the top right-hand corner of the web console.

AWS console — Navigate to My Organisation

Once in the Organization view, create your desired organization units. Below I’ve created Production, Staging and Playground accounts. Production…

--

--

Michael Timbs
Michael Timbs

Written by Michael Timbs

Full-stack developer. In love with Typescript and Serverless

No responses yet

Write a response