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
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则