Six Stars

Issue in tSQSConnection

I’m using tSQSConnection for AWS queue services. But I’m getting below error when I’m trying to create or connect the topic.

 

Exception in component tSQSOutput_1 (SNS_Receiver)

com.amazonaws.AmazonServiceException: Not authorized to perform sts:AssumeRole (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Request ID: 09e1acc4-8b41-11e8-a2f3-4f7b6df294eb)

                at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1369)

                at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:913)

                at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:631)

                at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:400)

                at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:362)

                at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:311)

                at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.invoke(AWSSecurityTokenServiceClient.java:1161)

                at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.assumeRole(AWSSecurityTokenServiceClient.java:458)

 

The same connection is working in AWS and credentials also correct

1 REPLY
Employee

Re: Issue in tSQSConnection

Hi,

 

   Could you please cross check your AWS IAM policy assigned for the specific user? Please refer whether sts:AssumeRole is present for the user policy.

 

    Below link will help to identify the associate roles for a user.

 

    https://docs.amazonaws.cn/en_us/IAM/latest/UserGuide/id_roles_manage_modify.html

 

Warm Regards,

 

Nikhil Thampi

 

Tags (2)