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.

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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ