当我尝试生成凭证报告时,弹出此错误
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: *
如何修复/解决此问题?
最佳答案
基于评论。
解决方案是将缺少的权限 iam:GenerateCredentialReport
添加到用于执行 boto3 脚本的 IAM 用户或角色。
关于python - 如何解决 "botocore.exceptions.ClientError: An error occurred (AccessDenied)"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61725785/