Questions tagged [amazon-sqs]

Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable, hosted queue for storing messages as they travel between computers.

Resources

Tutorial

4134 questions
1
vote
1 answer

AWS SAM + ApiGateway + x-amazon-integration + SNS fifo + SQS fifo: MessageGroupId from path param

I am writing a SAM template for a business application that, among other things, processes device status updates. Users post status updates to the API Gateway that, in turn, suitably sets the destSQS message attribute and publishes such requests to…
1
vote
0 answers

AWS SNS filter policy doesn't support Exists operator for array fields?

I have SNS topic and SQS queue. I'd like to send some messages from SNS to SQS. I have SNS filter policy that uses exists operator ResultTopicToAlertSqs: Type: AWS::SNS::Subscription Properties: TopicArn: !Ref ResultTopic Endpoint:…
osynavets
  • 1,199
  • 1
  • 12
  • 22
1
vote
0 answers

multiple nodejs consumers for sqs queue?

I have a SQS queue with thousands of messages. I cannot consume them on lambda due to size of function (using puppeteer) so I've moved my consumer to EC2 instance(s). As this is POC, I did a very basic implementation of consumer using this…
1
vote
2 answers

Laravel queue shows too many attempts and maximum time out 60 seconds exceeded but the job successfully executed

(Note: I am a beginner in using AWS SQS for queues) I have a function where I would like to insert tens of thousands records into an excel, save the excel to AWS S3 and display into frontend datatable. This function executes using AWS SQS queue with…
1
vote
0 answers

The security token included in the request is expired when using ProfileCredentialsProvider

I am connecting to SQS through my Java code, and the connection is required to be alive for more than 60 minutes, as I keep polling a queue for a long time. However the credentials I use seem to expire. How can I keep the credentials alive? Below is…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
1
vote
0 answers

Postfix and Amazon S3

I have a Postfix mail server running on a Amazon instance. Is there a way to interact with Postfix and save every mail that comes to server in a file on Amazon S3 and to save email details in a Amazon SQS queue (mail details: to, from, subject, etc,…
1
vote
1 answer

How Do I Limit A Standard FIFO Queue ThroughPut In The AWS CDK?

I have created a FIFO queue, but would like to limit the number of requests it can make, so as not to overload the server it is sending those requests to. CDK Code: this.intoMagento = new Queue(this, "intoAPI", { queueName: `intoAPI.fifo`, fifo:…
Luke
  • 761
  • 1
  • 18
1
vote
1 answer

cycle error when creating terraform code for sqs and its access policy

i try to create sqs queue and attach access policy to it, The policy is of type "data" - no actual resource is created , its just attached to the newly created sqs queue. ╷ │ Error: Cycle: data.aws_iam_policy_document.sqs_vote_policy,…
ERJAN
  • 23,696
  • 23
  • 72
  • 146
1
vote
2 answers

Using return value from awaited method

I'm trying to understand async methods and await, I've got this simple example: using (var client = new AmazonSQSClient()) { var sqsRequest = new SendMessageRequest() { MessageBody =…
Ben
  • 609
  • 6
  • 21
1
vote
1 answer

AWS CDK Events Add Target with Input Template

I am creating an event in AWS that when a file is dropped into S3, this rule is triggered and starts a step function (SfnStateMachine) I have some cdk code (node.js) where I add the SfnStateMachine as a target of that rule. I want to take the…
1
vote
1 answer

Handle AWS SQS Dead Letter Queue

I've configured a DLQ in AWS following this article: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-dead-letter-queue.html This is the consumer I have in a sprint boot application: @SqsListener(value =…
Carlos Gonzalez
  • 607
  • 1
  • 5
  • 13
1
vote
2 answers

Number of deleted messages is twice as many as received messages

I created SQS service with terraform resource "aws_sqs_queue" "ses_queue" { name = "ses_queue" message_retention_seconds = 86400 receive_wait_time_seconds = 1 visibility_timeout_seconds = 15 } resource…
psowa001
  • 725
  • 1
  • 6
  • 18
1
vote
0 answers

Unable to get the ARN for AWS SQS and its dead letter queue

I am creating a sqs with a dead letter queue. The creation of the queue is success but I need to store the ARN value of the queue in systems manager at parameter store. Is there any way to pass the value to parameter store? Please provide inputs. I…
mac34
  • 11
  • 1
1
vote
1 answer

AWS SQS - How to conditionally decide whether a message should be moved to the DLQ?

I know SQS has the maxReceiveCount and once the message has been consumed and failed this amount of times, then the message is moved to the DLQ. That's working currently. However, there are certain errors which I would want to go back in my source…
1
vote
0 answers

I get "InvalidSignatureException: Signature expired" when Lambda is invoked

I have the following architecture: S3 ---> S3 Notification ---> SQS ---> Lambda Sometimes, I'm getting the following error message from the Lambda (of course the times are different): "errorType": "Runtime.UnhandledPromiseRejection" "errorMessage":…
Maor agai
  • 221
  • 1
  • 3
  • 11