如何解决“botocore.exceptions.ClientError:发生错误(AccessDenied)”错误?

2024-10-03 17:26:10 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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: *

如何修复/解决此问题


Tags: thean报告错误erroriamexceptionswhen
1条回答
网友
1楼 · 发布于 2024-10-03 17:26:10

根据评论

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

相关问题 更多 >