Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to AWS in VSCode using latest toolkit #1473

Closed
bestbear opened this issue Jan 22, 2021 · 2 comments
Closed

Unable to connect to AWS in VSCode using latest toolkit #1473

bestbear opened this issue Jan 22, 2021 · 2 comments
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso bug We can reproduce the issue and confirmed it is a bug.

Comments

@bestbear
Copy link

I can't connect to AWS using predefined profiles listed in VSCode
However, I can directly in an SSH window on my Mac using the same exact AWS profile. It seems none of the profiles are working from inside the AWS Toolkit for some reason.

Switching to any available AWS profile in VSCode fails to connect to AWS

To Reproduce

@bestbear bestbear added the bug We can reproduce the issue and confirmed it is a bug. label Jan 22, 2021
@justinmk3
Copy link
Contributor

However, I can directly in an SSH window on my Mac using the same exact AWS profile

Is that using the aws command (AWS CLI)? The AWS CLI has more lenient parsing than the AWS JS SDK used by the VSCode AWS Toolkit.

That means, if there is a syntax issue in your ~/.aws/credentials or ~/.aws/config, Toolkit may not be able to read it, even though AWS CLI can read it.

In VSCode, can you try the AWS: View AWS Toolkit Logs command to see if the logs show related errors?

@justinmk3 justinmk3 added the auth-credentials authentication, authorization, credentials, AWS Builder ID, sso label Jan 22, 2021
@bestbear
Copy link
Author

Yes, you were correct. There was a questionable bit of syntax in my ~/.aws/config file. Once that was cleaned up VSCode works properly with the AWS Toolkit. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso bug We can reproduce the issue and confirmed it is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants