How Do I Assume a Role in Aws Console

In the IAM console, choose your user name on the navigation bar in the upper right. … Choose Switch Role. … On the Switch Role page, type the account ID number or the account alias and the name of the role that was provided by your administrator. … (Optional) Choose a Display name. … Choose Switch Role.

How do you assume a role in console?

  1. In the IAM console, choose your user name on the navigation bar in the upper right. …
  2. Choose Switch Role. …
  3. On the Switch Role page, type the account ID number or the account alias and the name of the role that was provided by your administrator. …
  4. (Optional) Choose a Display name. …
  5. Choose Switch Role.

How do I assume a role in AWS CLI?

Create environment variables to assume the IAM role and verify access. The AWS CLI command should output the ARN as arn:aws:sts::123456789012:assumed-role/example-role/AWSCLI-Session instead of arn:aws:iam::123456789012:user/Bob, which verifies that you assumed the example-role.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest