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 réponse
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
répondu il y a 6 mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions