By using AWS re:Post, you agree to the AWS re:Post Terms of Use

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.

asked a year ago415 views
1 Answer
2
Accepted Answer

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
EXPERT
answered a year ago
profile picture
EXPERT
reviewed 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions