Switch Role

We will use the current IAM user (with MFA enabled) to proceed with the Assume-Role mechanism for IAM role - ec2-admin-team-alpha.

Proceed with Assume-Role mechanism - ec2-admin-team-alpha

  1. Log in to AWS Management Console.

    • Select Users
    • Select the created Admin user.

AWS IAM

  1. Select Security credentials

    • Copy the sign-in URL

AWS IAM

  1. Use the sign-in URL with a new browser tab.

    • Enter information about Account ID and user name - password
    • Then, select Sign in

AWS IAM

  • We will proceed to change the password

AWS IAM

  1. Complete sign-in by clicking Continue to sign in.

AWS IAM

AWS IAM

  1. After successful sign-in, click on Username displayed in the upper right corner, the Console will display Account ID and Account name, then proceed to click the Switch Role button. Alternatively, we can copy/paste the URL that was saved.

AWS IAM

  1. On the Switch Role page, we will enter as follows:
  • In the Account box: <ACCOUNT_ID_NUMBER>.
  • In the Role box: ec2-admin-team-alpha.
  • In the Display Name (Optional) box: Optionally enter a memorable name for subsequent uses.
  • Proceed to click the Switch Role button, for the first time there will be some additional information.

AWS IAM

  1. Our Web browser will be redirected to a new page. Here we are the role ec2-admin-team-alpha.

AWS IAM