aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.41k stars 346 forks source link

Explorer: consider IdC region when choosing default region #5224

Open P-Price opened 1 week ago

P-Price commented 1 week ago

Problem

When initially logging in (Singing in with Identity Center), I specifically set the region to eu-west-2, but when viewing my credentials in the toolkit extension, they always display us-east-1.

Steps to reproduce the issue

  1. Download extension in VS Code
  2. Open the extension
  3. For "Choose sign-in option" select "Workforce".
  4. Add a valid Start URL, and choose the "eu-west-2" region. Screenshot 2024-06-25 at 17 36 16
  5. Follow the redirects and sign in successfully.
  6. Select your newly configured connection (one of your roles)
  7. This should display your resources for a configured region. In my case, this is always us-east-1. Screenshot 2024-06-25 at 17 38 02

Expected behavior

Step 7 should display resources for the configured region (in my case, eu-west-2), not us-east-1.

System details (run AWS: About and/or Amazon Q: About)

justinmk3 commented 1 week ago

Did you try the Show or Hide Regions action (documentation)? This is available in the "..." menu of Explorer, and also by right-clicking on any region in the Explorer.

image

However, we definitely should use the IdC region to influence the default region when first connecting.

P-Price commented 1 week ago

I've clearly been being stupid. I swear I thought I'd clicked every menu button available and promise I did google this before raising an issue.

Now that you've pointed it out specifically I can indeed see the way to change regions. Thank you for the simple troubleshooting :-( sorry for the simple user issue.