Skip to content

Profiles not loaded correctly #1784

Closed
Closed
@share-me

Description

@share-me

Describe the bug

Only profiles not presents in "config" file are loaded

.aws/config

[profile second-role]
role_arn = arn:aws:iam::000000000000:role/myrole
source_profile = myrole
region = us-east-2

.aws/credentials

[first-role]
output = json
region = us-east-2
aws_access_key_id = secret
aws_secret_access_key = secret
aws_session_token = secret

[second-role]
output = json
region = us-east-2
aws_access_key_id = secret
aws_secret_access_key = secret
aws_session_token = secret

To Reproduce

  1. Click on "Connect to AWS"
  2. Only one profile appears (instead of 5)

Expected behavior

2 profiles

Desktop (please complete the following information):

OS: Windows_NT x64 10.0.18363
Visual Studio Code Extension Host Version: 1.56.2
AWS Toolkit Version: 1.25.0

debug
2021-06-02 15:10:41 [INFO]: AWS Toolkit Version: 1.25.0
2021-06-02 15:36:46 [WARN]: Shared Credentials Profile first-role is not valid. It will not be used by the toolkit. Cycle detected within Shared Credentials Profiles. Reference chain: first-role -> first-role

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-credentialsauthentication, authorization, credentials, AWS Builder ID, ssobugWe can reproduce the issue and confirmed it is a bug.needs-responseWaiting on reply from issue/PR author.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions