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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ