Skip to content

AWS Toolkit: Using non-default aws profile causes remote extension host to crash #8369

@Tiffceet

Description

@Tiffceet

Problem

When using AWS toolkit, having default credentials in %userprofile%\.aws\config and %userprofile%\.aws\credentials, AWS Toolkit automatically connects.

However, when switching to non default profiles with the same credentials, aws toolkit extension will keep crashing extension host until it is disabled

Note that in my setup, my credentials include aws_access_key_id aws_secret_access_key aws_session_token

Steps to reproduce the issue

  1. Setup aws credentials with aws configure
  2. Make a copy of the profile in ~/.aws/profile and ~/.aws/credentials but under different name
  3. Open the extension > Select a connection...
  4. Select the duplicated profile
Image
  1. Extension host crashed
Image

Expected behavior

Able to switch between profile normally

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

OS: Windows_NT x64 10.0.26200
Visual Studio Code extension host: 1.106.2
AWS Toolkit: 3.89.0
node: 22.20.0
electron: 37.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWe can reproduce the issue and confirmed it is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions