Unauthorised API call has been made

0
Unauthorised API call has been made :Region - us-east-1, Service - cloudtrail,Action - LookupEvents, API Params - {'LookupAttributes': [{'AttributeKey': 'EventName', 'AttributeValue': 'RotateKey'}], 'MaxResults': 1}

I am getting this error using boto3 even though I have full admin privileges on the credentials being used

질문됨 일 년 전294회 조회
1개 답변
0

Hi, to make sure that the CLI uses the credentials with the full admin right, you should first validate them.

The precedence rules (see https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) may result in different credentials that those that you believe you use.

So, try to run 'aws sts get-caller-identity' to check the identity under which CLI runs. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/get-caller-identity.html

Then, check your aws cli config via 'aws configure list'. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/configure/list.html

You should then be sure which identity you're using and confirm that it is the one with full admin rights

profile pictureAWS
전문가
답변함 일 년 전
  • The issue isn't with CLI but with the Boto3 client, it works fine on CLI

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

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

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