By using AWS re:Post, you agree to the Terms of Use
/Application Integration/

Application Integration

Application integration on AWS is a suite of services that enable communication between decoupled components within microservices, distributed systems, and serverless applications. You don’t need to refactor your entire architecture to benefit - decoupling applications at any scale can reduce the impact of changes, making it easier to update and faster to release new features.

Recent questions

see all
1/18
0
answers
0
votes
1
views
redec
asked 2 days ago
2
answers
0
votes
6
views
Arian Calabrese
asked 5 days ago

InvalidClientTokenId sending message to SQS that works for SES

I'm having trouble sending a message to a new SQS queue and receive this error: [Type] => Sender [Code] => InvalidClientTokenId [Message] => The AWS Access Key Id you provided does not exist in our records. Any suggestions on why SQS is not recognizing the Key ID for SQS SendMessage, but does accept it for SES calls? - Key Id is the identical key used for successfully sending SES mail - Same Elasticbeanstalk instance, application, AWS SDK. - PHP 7.4 64 bit - Elasticbeanstalk instance on Amazon Linux 2/3.3.9 - AWS SDK 1.5.14 (tried 3.x, same results) Php code: require_once(<path>/aws-sdk/sdk.class.php'); require_once(<path>/aws-sdk/services/sqs.class.php'); $options = array('key' => 'AKIAblahblahblah','secret' => 'blahblahblahblahblahblahblahblahblahblahblahblah'); $sqs = new AmazonSQS($options); $sqs->set_region('sqs.us-east-2.amazonaws.com'); $sqs_queue = 'https://sqs.us-east-2.amazonaws.com/111112345678/my-app-sa'; $message = 'test'; $r = $sqs->send_message($sqs_queue, $message); Elasticbeanstalk: IAM instance profile: aws-elasticbeanstalk-ec2-role Service role: arn:aws:iam::111112345678:role/aws-elasticbeanstalk-service-role IAM User: Name=my-app-sa User ARN=arn:aws:iam::111112345678:user/my-app-sa Permissions: Policy=AmazonSQSFullAccess Created AccessKey: keyID=AKIAblahblahblah SQS Queue: Name=my-sqs-queue Access Policy: { "Version": "2008-10-17", "Id": "__default_policy_ID", "Statement": [ { "Sid": "__owner_statement", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111112345678:root" }, "Action": "SQS:*", "Resource": "arn:aws:sqs:us-east-2:111112345678:my-sqs-queue" }, { "Sid": "__sender_statement", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::111112345678:role/aws-elasticbeanstalk-ec2-role", "arn:aws:iam::111112345678:user/my-app-sa", "arn:aws:iam::111112345678:role/aws-elasticbeanstalk-service-role" ] }, "Action": "SQS:SendMessage", "Resource": "arn:aws:sqs:us-east-2:111112345678:my-sqs-queue" }, { "Sid": "__receiver_statement", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::111112345678:role/aws-elasticbeanstalk-ec2-role", "arn:aws:iam::111112345678:user/my-app-sa", "arn:aws:iam::111112345678:role/aws-elasticbeanstalk-service-role" ] }, "Action": [ "SQS:ChangeMessageVisibility", "SQS:DeleteMessage", "SQS:ReceiveMessage" ], "Resource": "arn:aws:sqs:us-east-2:111112345678:my-sqs-queue" } ] }
2
answers
0
votes
5
views
AWS-User-1947056
asked 8 days ago

Popular users

see all
1/18

Learn AWS faster by following popular topics

1/2