Trouble Configuring AWS Toolkit CLI in Visual Studio Code: Authentication and Credential

0

I'm trying to configure theAWS Toolkit CLI in Visual Studio Code, and I can't seem to pass the authentication. I've checked the policy I'm under, and I see that I do have access to the cloud API. Are the credentials supposed to be the same as my regular AWS account, or are there other credentials?

1개 답변
0

Hello

The credentials that are required to login in AWS toolkit CLI in VS code will be the same as we login in normal AWS CLI.

Kindly refer documentation[1] for detailed information regarding authentication and access for the AWS Toolkit for Visual Studio Code and check according to your authentication method.

If you are still unable to connect using the correct credentials. Kindly follow the troubleshoot steps mentioned below:

  1. Verify that you are using latest version of toolkit[2].
  2. If the credentials are not working in AWS toolkit only and working on AWS CLI, kindly check the syntax details, 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. This is because the AWS CLI has more lenient parsing than the AWS JS SDK used by the VSCode AWS Toolkit.[3]

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

[1] https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/establish-credentials.html [2] https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setup-toolkit.html [3] https://github.com/aws/aws-toolkit-vscode/issues/1473

AWS
답변함 6달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠