amazon-sqs

How to get around the Linux “Too Many Arguments” limit

我怕爱的太早我们不能终老 提交于 2020-08-19 11:51:18
问题 I have to pass 256Kb of text as an argument to the "aws sqs" command but am running into a limit in the command-line at around 140Kb. This has been discussed in many places that it been solved in the Linux kernel as of 2.6.23 kernel. But cannot get it to work. I am using 3.14.48-33.39.amzn1.x86_64 Here's a simple example to test: #!/bin/bash SIZE=1000 while [ $SIZE -lt 300000 ] do echo "$SIZE" VAR="`head -c $SIZE < /dev/zero | tr '\0' 'a'`" ./foo "$VAR" let SIZE="( $SIZE * 20 ) / 19" done And

AWS SQS: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge?

China☆狼群 提交于 2020-07-30 07:37:43
问题 I am trying to a message to SQS in my Java code as follows: public void pushToSQS(){ String queueURL = "https://sqs.us-east-1.amazonaws.com/205135634997/myQueue.fifo"; try { final AmazonSQS sqs = AmazonSQSClientBuilder.defaultClient(); sqs.sendMessage(new SendMessageRequest(queueURL, "test message")); } catch (final AmazonServiceException e) { log.error("Error: " + e.getMessage()); } } However at line: final AmazonSQS sqs = AmazonSQSClientBuilder.defaultClient(); I get the error: java.lang

spring cloud aws multiple sqs listener

▼魔方 西西 提交于 2020-07-20 17:02:11
问题 There are 2 sqs listener in my project. I want one of them to have the same setting and one of them different setting. The only value I want to change is maxNumberOfMessages. What is the most practical way to do this ? ı want set different maxNumberOfMessages value for one of listener. this is my config ; @Bean public AWSCredentialsProvider awsCredentialsProvider(@Value("${cloud.aws.profile}") String profile, @Value("${cloud.aws.region.static}") String region, @Value("${cloud.aws.roleArn}")

spring cloud aws multiple sqs listener

孤街浪徒 提交于 2020-07-20 17:00:51
问题 There are 2 sqs listener in my project. I want one of them to have the same setting and one of them different setting. The only value I want to change is maxNumberOfMessages. What is the most practical way to do this ? ı want set different maxNumberOfMessages value for one of listener. this is my config ; @Bean public AWSCredentialsProvider awsCredentialsProvider(@Value("${cloud.aws.profile}") String profile, @Value("${cloud.aws.region.static}") String region, @Value("${cloud.aws.roleArn}")

spring cloud aws multiple sqs listener

自闭症网瘾萝莉.ら 提交于 2020-07-20 17:00:35
问题 There are 2 sqs listener in my project. I want one of them to have the same setting and one of them different setting. The only value I want to change is maxNumberOfMessages. What is the most practical way to do this ? ı want set different maxNumberOfMessages value for one of listener. this is my config ; @Bean public AWSCredentialsProvider awsCredentialsProvider(@Value("${cloud.aws.profile}") String profile, @Value("${cloud.aws.region.static}") String region, @Value("${cloud.aws.roleArn}")

SQS Encryption using CMK

不羁岁月 提交于 2020-07-10 10:48:05
问题 I am trying to read message from an encrypted SQS. Objects are landed on an S3 Bucket -> Trigger S3 Event -> Message sent to SQS -> SQS triggers Lambda to Process. I have got this working using an AWS managed CMK. However, I can't get this working using AWS owned CMK e.g. alias/aws/sqs . The message just goes into messages in flight and does not invoke the Lambda functions. As per the the AWS documentation here https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs

SQS - Get Message By Id

谁都会走 提交于 2020-07-08 05:33:56
问题 Is it possible for me to get a message from the SQS queue based on the message ID with the Amazon PHP SDK? Do I have to just grab all of the messages on the queue and then filter it on my server? My server receives a SNS instigated request with a queue message Id and I'm having to filter the message from an array of messages from SQS. 回答1: The purpose of a queue is to use it as a buffer to store messages before a certain processing task. This should not be confused with a storage service or a

SQS - Get Message By Id

北城以北 提交于 2020-07-08 05:33:03
问题 Is it possible for me to get a message from the SQS queue based on the message ID with the Amazon PHP SDK? Do I have to just grab all of the messages on the queue and then filter it on my server? My server receives a SNS instigated request with a queue message Id and I'm having to filter the message from an array of messages from SQS. 回答1: The purpose of a queue is to use it as a buffer to store messages before a certain processing task. This should not be confused with a storage service or a

Access Denied Error when trying to post messages to SQS

▼魔方 西西 提交于 2020-07-07 23:21:58
问题 I am trying to create an API that logs JSON request bodies in an SQS queue. I have set up a basic queue in SQS in both the FIFO and non-FIFO layouts. I have the same problem each time. My policy for the SQS queue is as follows: { "Version": "2012-10-17", "Id": "arn:aws:sqs:us-east-1:2222222222222:API-toSQS.fifo/SQSDefaultPolicy", "Statement": [ { "Sid": "Sid22222222222", "Effect": "Allow", "Principal": "*", "Action": "SQS:*", "Resource": "arn:aws:sqs:us-east-1:2222222222222:API-toSQS.fifo" }

Access Denied Error when trying to post messages to SQS

陌路散爱 提交于 2020-07-07 23:14:52
问题 I am trying to create an API that logs JSON request bodies in an SQS queue. I have set up a basic queue in SQS in both the FIFO and non-FIFO layouts. I have the same problem each time. My policy for the SQS queue is as follows: { "Version": "2012-10-17", "Id": "arn:aws:sqs:us-east-1:2222222222222:API-toSQS.fifo/SQSDefaultPolicy", "Statement": [ { "Sid": "Sid22222222222", "Effect": "Allow", "Principal": "*", "Action": "SQS:*", "Resource": "arn:aws:sqs:us-east-1:2222222222222:API-toSQS.fifo" }