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 Risposta
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
con risposta 6 mesi fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande