简体   繁体   English

调用 GenerateServiceLastAccessedDetails 时拒绝访问

[英]AccessDenied when calling the GenerateServiceLastAccessedDetails

The role I am assuming has the arn:aws:iam::aws:policy/SecurityAudit policy attached which includes the necessary permissions我假设的角色附加了arn:aws:iam::aws:policy/SecurityAudit策略,其中包括必要的权限

"iam:GenerateServiceLastAccessedDetails",
"iam:Get*",
"iam:List*"

On Resource * .在资源*上。 And yet I still get An error occurred (AccessDenied) when calling the GenerateServiceLastAccessedDetails operation: User: <assumed_role> is not authorized to perform the operation on <role_arn> .但是我仍然收到An error occurred (AccessDenied) when calling the GenerateServiceLastAccessedDetails operation: User: <assumed_role> is not authorized to perform the operation on <role_arn> Is it a bug in AWS?它是 AWS 中的错误吗?

I found that this occurs when the arn in the request is invalid.我发现当请求中的arn无效时会出现这种情况。 The error message is a bug, it is an invalid input, not an access denied issue.错误消息是一个错误,它是一个无效的输入,而不是访问被拒绝的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Boto3 S3 错误 - 调用 PutObjectAcl 时拒绝访问 - Boto3 S3 error - AccessDenied when calling the PutObjectAcl 如何修复 AccessDenied 调用 CopyObject - How to fix AccessDenied calling CopyObject 使用批处理作业时“调用 ListObjectsV2 操作时发生错误 (AccessDenied):访问被拒绝” - "An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied" when using batch jobs 调用 PutObject 操作时发生错误 (AccessDenied):Access Denied 但在我的系统上有效 - An error occurred (AccessDenied) when calling the PutObject operation: Access Denied but works on my system AWS S3 Boto3 Python - 调用 DeleteObject 操作时发生错误 (AccessDenied):拒绝访问 - AWS S3 Boto3 Python - An error occurred (AccessDenied) when calling the DeleteObject operation: Access Denied 使用 django-storages 和 boto3 在 Django 中调用 CreateMultipartUpload 操作时出现 AccessDenied - AccessDenied when calling the CreateMultipartUpload operation in Django using django-storages and boto3 ValueError:存储桶不存在,或禁止访问 '调用 CreateMultipartUpload 时发生错误(AccessDenied) - ValueError: the bucket does not exist, or is forbidden for access 'An error occurred (AccessDenied) when calling the CreateMultipartUpload 当权限为 s3 时,S3 存储桶的 ListObjects 的访问被拒绝:* - AccessDenied for ListObjects for S3 bucket when permissions are s3:* 使用 Flysystem 的 AWS S3 在创建目录时“无法在位置写入文件...拒绝访问” - AWS S3 with Flysystem "Unable to write file at location... AccessDenied" when creating directory 从 s3 获取 object 时,在 lambda 中获取“AccessDenied: Access Denied” - Getting "AccessDenied: Access Denied" inside lambda when getting an object from s3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM