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
질문됨 일 년 전2811회 조회
1개 답변
0
수락된 답변

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.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠