not authorized to perform: sts:AssumeRole

0

AWSSecurityTokenServiceException: User: arn:aws:iam::xxx is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::xxx (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Request ID: xxx; Proxy: null) at io.mitigant.mitigantapi.aws.ssmdocuments.AWSSimpleSystemsManagementDocumentsSecurityRule.lambda$apply$5(AWSSimpleSystemsManagementDocumentsSecurityRule.java:66) ... (39 additional frame(s) were not displayed)

CompletionException: com.amazonaws.services.securitytoken.model.AWSSecurityTokenServiceException: User: arn:aws:iam::xxx is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::xxx (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Request ID: xxx; Proxy: null) at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ...

Free free to send us meeting invite online also

(1 additional frame(s) were not displayed)

已提問 2 年前檢視次數 20833 次
2 個答案
1

Here is an AWS Support Knowledge Center article that may give you pointers on how to debug this - https://aws.amazon.com/premiumsupport/knowledge-center/iam-assume-role-error/

profile pictureAWS
專家
已回答 2 年前
0

Just to add a bit more detail to Indranil's answer: Your IAM User does not have permission to call the sts:AssumeRole action to assume the role.

Adding that permission to the user (for the role resource that you're attempting to assume) will fix the error.

profile picture
rowanu
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南