Posts

Showing posts with the label amazon-iam

Best way to copy messages within 2 SQS queues across AWS accounts

Best way to copy messages within 2 SQS queues across AWS accounts What is the best way to copy messages from one SQS queue to the other across AWS accounts? After searching, I attached the policy granting full read and write access for the IAM user(in the destination account) to the source queue. Then I attached a Permission to the source queue for Everyone to have send and receive message access on the queue. I am getting below error - Exception in thread "main" com.amazonaws.AmazonServiceException: The security token included in the request is invalid. (Service: AmazonSQS; Status Code: 403 Probably there is something wrong with the IAM user credentials, however, I have refreshed the credentials, but I'm still getting the error 1 Answer 1 Permissions are a secondary matter. The primary question is how to "copy messages from one SQS queue to the other across AWS accounts...