Why do I get an CredentialReportNotPresentException error after generating a credentials report less than four hours ago?

0

I generated an IAM credentials report less than four hours ago, but I'm still getting a "CredentialReportNotPresentException" when trying to get the credentials report (all via boto3). Why is this? This is the second time that has happened to me.

질문됨 일 년 전445회 조회
1개 답변
2
수락된 답변

Hello. The "CredentialReportNotPresentException" error in AWS Identity and Access Management (IAM) typically occurs when you try to access a credentials report that hasn't been generated or isn't available yet, even if you've generated one recently. This can happen due to several reasons:

Delay in Report Generation: After you request a credentials report in AWS IAM, it may take some time for AWS to generate the report. While it's designed to be generated within a few hours, there can be delays depending on AWS service usage.

Report Frequency: AWS IAM generates a new credentials report at most once every four hours. If you try to access the report again before it's regenerated, you'll receive the "CredentialReportNotPresentException" error.

Permissions: Ensure that the AWS Identity and Access Management (IAM) user or role you are using to access the report has the necessary permissions to do so. You need permissions for the iam:GetCredentialReport action.

Best regards, Andrii

profile picture
전문가
답변함 일 년 전
profile picture
전문가
검토됨 8달 전

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

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

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

관련 콘텐츠