首页 > 解决方案 > 如何解决“botocore.exceptions.ClientError:发生错误(AccessDenied)”错误?

问题描述

当我尝试生成凭据报告时,会弹出此错误

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GenerateCredentialReport operation: User: arn:aws:iam::111111111111:user/freshers is not authorized to perform: iam:GenerateCredentialReport on resource: *

如何修复/解决此问题?

标签: pythonmongodbamazon-web-servicespymongoboto3

解决方案


根据评论。

iam:GenerateCredentialReport解决方案是向用于执行 boto3 脚本的 IAM 用户或角色添加缺少的权限。


推荐阅读