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
Log in to AWS Management Console.
- Select Users
- Select the created Admin user.

Select Security credentials

Use the sign-in URL with a new browser tab.
- Enter information about Account ID and user name - password
- Then, select Sign in

- We will proceed to change the password

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


- 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.

- 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.

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