利用Boto3连接来验证是否有任何s3 Bucket包含任何ACL或Bucket策略

2024-04-20 06:36:11 发布

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

我有一个python脚本,它在for bucket in conn.buckets.all()处出错。在

到目前为止,我得到的是:

Code

错误是:

An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied: ClientError ClientError: An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied

我已经授予用户和Lambda函数所使用的角色所附加的策略的完全访问权。在


Tags: the脚本anforbucketaccesserroroperation
2条回答

感谢大家的帮助,只是lambda函数使用了角色的权限问题。未指定列表权限。在

在所有连接桶()已返回存储桶列表;应删除for循环后面的两行。在

相关问题 更多 >