python - 如何解决“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: *
如何修复/解决此问题?
解决方案
根据评论。
iam:GenerateCredentialReport
解决方案是向用于执行 boto3 脚本的 IAM 用户或角色添加缺少的权限。
推荐阅读
- python-3.x - 如何用 sympy 计算两个多边形的交集面积?
- java - 为什么 parseBoolean 不抛出异常?
- java - while循环减少另一个类中的实例变量
- python - 不让我下载 pip,说有权限问题,我需要更新 pip
- javascript - React - list.push 不是一个函数
- git - 致命:不是 git 存储库(或任何父目录):.git on rake task on Heroku
- python - Python Pandas 处理 308 请求
- regex - 仅从字符串中提取捕获组
- python - 课堂上直接打印——python
- r - 从 dplyr 数据返回中总结