Skip to content

Instantly share code, notes, and snippets.

@xcsrz
Created October 11, 2021 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcsrz/949b41c19927e63f428e075b3ba8bf32 to your computer and use it in GitHub Desktop.
Save xcsrz/949b41c19927e63f428e075b3ba8bf32 to your computer and use it in GitHub Desktop.
Accessing "member accounts" of your AWS organization. Since the AWS documentation and all the write-ups are more complicated than useful, there's the cliff notes.

Switching to Child Account in AWS

Prerequisites

Setting up a child accocunt:

Configuring switch roles

This needs to be done for every user and needs to be done for every machine (stored in a cookie or local storage).

Once you have switched from the parent account to a subaccount, your profile menu usually appears in the upper right corner will show the Display Name in a bubble colored with the chosen Color (below).

Note: you can switch back to the parent org by selecting Back to [ YOUR USERNAME ] in that same profile menu.

Preparation

  • Click on your username in the upper right corner to access your profile menu (left most of the menus in that corner)
  • Click on My Organization
  • In the Organizational Structure chart copy the account numbers and names of the subaccounts you wish to access

For each subaccount you need access to follow these steps:

  • Make sure you are in the parent account (there will not be a Back to [ YOUR USERNAME ] option in the profile menu).
  • Open your profile menu by clicking on your username in the upper right corner (left most of the menus in that corner).
  • Select Switch role
  • If this is your first time doing this in the browser/computer you will need to click on Switch Role again
  • Enter the account details
    • Account: (as copied in Preparation above)
    • Role: OrganizationAccountAccessRole
    • Display Name: user's choice - whatever makes sense to you
    • Color: user's choice - NOTE: this will be the color of your username in the header when you're logged into this subaccount
  • Click Switch Role
  • Note you are now in the child account, as indicated by the visual change of the profile menu button in the upper right corner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment