tilfinltd / aws-extend-switch-roles

Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
https://chromewebstore.google.com/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?utm_source=github
MIT License
1.32k stars 141 forks source link

Inaccurate Region Display when Switching Roles within Same Account #296

Open srk1195 opened 1 year ago

srk1195 commented 1 year ago

Describe the bug When attempting to switch roles from the same AWS account but different regions using the AWS Extend Switch Roles extension, the switch appears to be successful but does not reflect the changes accurately.

To Reproduce Steps to reproduce the behavior:

  1. Open the AWS Extend Switch Roles extension.
  2. Configure the extension for the desired AWS account and regions.
  3. Attempt to switch roles from the same account but in different regions.
  4. Notice that the switch seems to be complete, but the displayed region does not update accordingly.

Expected behavior I expected the extension to successfully switch roles within the same AWS account, regardless of the region. The selected region should be accurately reflected after the switch.

Screenshots

  1. Profile is not matching to what it should be image

  2. Regions in the URL and the actual one are different image

Environment

Additional context Add any other context about the problem here.

tilfin commented 1 year ago

This phenomenon seems to occur only on certain service pages. For example, the ECS page. The behavior of those pages when switching seems to be different from other pages.

hobti01 commented 6 months ago

There are many regional endpoints for the AWS console, but the region you are viewing should (and does in your example) match the URL parameter. IIRC there was a change within the last year or so regarding the regional endpoints, but here's the current list: https://docs.aws.amazon.com/general/latest/gr/mgmt-console.html

As @tilfin mentions, some service pages, e.g. Route53, have specific regions for the console regardless of the region you are viewing: https://us-east-1.console.aws.amazon.com/route53/v2/home?region=eu-central-1#Dashboard