Switch role

Perform IAM Role Switching

ℹ️ Overview In this section, you will switch from OperatorUser to AdminRole to obtain temporary administrator permissions. This process allows you to work with elevated permissions without granting direct permissions to the user.

Steps

  1. Access the switch role menu:
    • Click on the OperatorUser name in the top right corner
    • Select Switch Roles

AWS IAM

  1. Configure role switching information:
    • Account ID: Enter your AWS Account ID
    • IAM role name: Enter the AdminRole created previously
    • Display name: Display name (optional)
    • Display color: Select a color to distinguish the role (optional)
    • Click Switch Role to confirm

💡 Pro Tip Use different colors for roles to easily identify them when working with multiple roles

AWS IAM

  1. Confirm successful role switch:
    • The displayed role name will change to AdminRole
    • You can return to OperatorUser by clicking Switch back
    • You now have full AdministratorAccess permissions

🔒 Security Note Always remember to switch back to the role with fewer permissions when administrator privileges are not required

AWS IAM

Lab Summary

ℹ️ Knowledge Gained Through this lab, you have mastered the skills:

  • Creating and managing IAM Groups, Users, and Roles
  • Attaching direct policies and inline policies
  • Logging in with an IAM User
  • Switching between IAM Roles
  • Applying AWS IAM security principles

⚠️ Important Note Always adhere to the principle of least privilege and only use administrator permissions when absolutely necessary