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.

gefragt vor 8 Monaten211 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen