简体   繁体   中英

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

"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> . Is it a bug in AWS?

I found that this occurs when the arn in the request is invalid. The error message is a bug, it is an invalid input, not an access denied issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM