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 Respostas
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
ESPECIALISTA
respondido há 2 anos
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas