Switch role

Implement Switch Role

  1. After successfully logging in, click on the user name OperatorUser in the upper right corner menu.

    • Click Switch Roles

    AWS IAM

  2. Click Switch Role.

    AWS IAM

  3. On the Switch Role page:

    • Account: Enter the Account ID we are using.
    • Role: Enter the name of the role you created earlier, AdminRole.
    • Color: Set the color for the account to distinguish it.
    • Click Switch Role.

    AWS IAM

  4. After successfully switching roles, you will see the name has changed to AdminRole. You can also return to OperatorUser by clicking Switch back. You now have the AdministratorAccess permission that we assigned to the Admin Role.

    AWS IAM

  5. Congratulations on completing the lab!

    Through this lab, you have learned:

    • How to create IAM Group, User, and Role.
    • How to assign a policy.
    • How to assign an inline policy (assign to OperatorUser).
    • How to log in using IAM User.
    • How to implement switch role.

    AWS IAM