Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
Switch role history only stores the last 5 roles (maximum) on the AWS Management Console. This extension shows a menu of switchable roles that you can configure manually.
A browser plug-in goes with security risks. AWS Management Console allows you to manipulate your essential data.
This extension does not restrict the use of other compatible browsers. The version restrictions are only due to the JavaScript language features used.
Left-click the extension, click "Configure", enter your configuration in the text box, and click "Save".
You can write the configuration in INI format like ~/.aws/config or ~/.aws/credentials.
The simplest configuration is for multiple target roles when you always intend to show the whole list. Target roles can be expressed with a role_arn or with both aws_account_id and role_name.
color - The RGB hex value (without the prefix '#') for the color of the header bottom border and around the current profile.region - Changing the region whenever switching the role if this parameter is specified.image - The uri of an image to use on top of any color attribute supplied. The color and image are not mutually exclusive.[profile marketingadmin]
role_arn = arn:aws:iam::123456789012:role/marketingadmin
color = ffaaee
[anotheraccount]
aws_account_id = 987654321987
role_name = anotherrole
region=ap-northeast-1
[athirdaccount]
aws_account_id = 987654321988
role_name = athirdrole
image = "https://aesr.dev/img/150"More complex configurations involve multiple AWS accounts and/or organizations.
A profile specified by the source_profile of the others is defined as a base account.
If your account is aliased, you specify aws_account_alias in base account.
If an role_name is specified in a base account it will also check for the role that is used to login to AWS. This can be used to select a subset of accounts when you are using an SSO IdP to login to AWS. If a role name starts with AWSReservedSSO_, the value should be only the permission set name.
A target role is associated with a base account by its source_profile specifying the profile name of the base account.
As above, target roles can be expressed with a role_arn or with both aws_account_id and role_name and can optionally pass the optional parameters.
If target_role_name is set in base account, the value is provided as the default role name for each target roles.
If target_region is set in base account, the value is provided as the default region for each target roles.
…If you sign-in a base account, target roles of the other base accounts are excluded.
The 'Show only matching roles' setting is for use with more sophisticated account structures where you're using AWS Organizations with multiple accounts along with AWS Federated Logins via something like Active Directory or Google GSuite. Common practice is to have a role in the master account that is allowed to assume a role of the same name in other member accounts. Checking this box means that if you're logged in to the 'Developer' role in the master account, only member accounts with a role_arn ending in 'role/Developer' will be shown. You won't see roles that your current role can't actually assume.
The popup interface supports keyboard navigation for efficient role switching:
No open issues yet, or sync has not completed.