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.

已提問 8 個月前檢視次數 210 次
1 個回答
1
已接受的答案

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
專家
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南