Token Invalid Error when Using AWS CLI

0

Hi, this might be a less intelligent question but I have my AWS account in Isengar, I copied the temporary credential including AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN to CloudDesktop/Mac, it gives me the error "The security token included in the request is invalid" when I use AWS CLI.

AWS
posta un anno fa2815 visualizzazioni
1 Risposta
0
Risposta accettata

Here are a few things you can try to troubleshoot the issue:

  1. Check the region: Make sure that the region you're using in the AWS CLI command matches the region of the temporary credentials.

  2. Check the IAM user permissions: Make sure that the IAM user associated with the temporary credentials has the necessary permissions to perform the action you're trying to do.

  3. Check the time on the CloudDesktop/Mac: Make sure the time on the CloudDesktop/Mac is in sync with the time on the Internet. Sometimes, the temporary credentials are time-sensitive, and if the time on your computer is off, the credentials will not work.

  4. Try to use the session token: when you use the AWS CLI command, make sure to use the session token to authenticate as well.

  5. Check the credentials path: Make sure that the credentials are saved in the default location, or if you have defined a path in your AWS CLI configuration file.

con risposta un anno 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