Questions related to integrating with the Spring Cloud AWS libraries
Questions tagged [spring-cloud-aws]
176 questions
3
votes
1 answer
How do I use the sqs-message-driven-channel-adapter in spring-integration-aws
EDIT: Here is a gist showing my log. It appears that there is ReceiveMessage and then a preSend on inputChannel:
https://gist.github.com/louisalexander/04e7d95835521efdd15455c98075e2ea
Apologies for being so dense, but I can't seem to figure out…

Louis Alexander
- 125
- 2
- 11
3
votes
0 answers
What are the minimum permissions for EC2 Instance Roles for Spring Cloud AWS Autoconfigure?
I'm attempting to stand up a Spring Cloud AWS instance (in Elastic Beanstalk at the moment). The instance bounces up and down and on inspecting the log there are references to missing permissions such as:
(my IAM EC2 Role) is not authorized to…

Jim Hankins
- 1,055
- 1
- 11
- 27
3
votes
0 answers
Spring AWS S3: Access to s3 object metadata
Is it possible to get object metadata with spring-aws-s3 library? I need access to "ETag" header but as it seems like SimpleStorageResource does not expose way to access objectMetadata and ResourceLoader interface does not expose connection.
What…

itwarilal
- 1,314
- 1
- 10
- 17
3
votes
0 answers
Spring Cloud AWS - Serve static content from S3 with ResourceLoader
I understand that spring-cloud-aws offers a SimpleStorageResourceLoader to allow loading of resources from S3 with path patterns like s3:///. The problem I am having is how to make sure that ResourceLoader gets used when resolving…

Shawn Clark
- 3,330
- 2
- 18
- 30
3
votes
1 answer
Spring cloud AWS multiple SimpleMessageListenerContainer configuration setup
I am trying to instantiate multiple SimpleMessageListenerContainer and define custom TaskExecutor for independent MessageListener queues, The reason for this setup is I don't want to create a shared SimpleMessageListenerContainer where thread pool…

Santhosh
- 31
- 4
2
votes
0 answers
CVE-2022-31159 in spring-cloud-starter-aws-messaging 2.2.6
Can someone let me know if spring-cloud-starter-aws-messaging version 2.2.6 is affected by CVE-2022-31159 due to the dependency on aws-java-sdk-s3 version 1.11.792 ?
Dependency tree
+-…

tuk
- 5,941
- 14
- 79
- 162
2
votes
0 answers
Spring-Cloud-AWS maxNumberOfMessages per queue
The SimpleMessageListenerContainerFactory in spring-cloud-aws provides a way to configure the MaxNumberOfMessages to pull from an SQS queue. See spring cloud docs
If an application is listening to more than one queue. How can the…

user1333371
- 598
- 3
- 13
2
votes
1 answer
Configure Spring Data Redis to perform all operations via Elasticache configuration endpoint?
Description
Is it possible for Spring Data Redis to use Elasticache's configuration endpoint to perform all cluster operations (i.e., reading, writing, etc.)?
Long Description
I have a Spring Boot application that uses a Redis cluster as data store.…

teuber789
- 1,527
- 16
- 28
2
votes
3 answers
How do I set AWS SNS message attribute values with spring-cloud-aws-messaging or aws-java-sdk?
I have a standard SNS topic and I´ve set the "subscription filter policy" like this:
{
"event": [
"eventName"
]
}
When I publish a message through the AWS console using the attributes message, the message goes to the right SQS subscriber.…

Bruno DZ
- 43
- 1
- 6
2
votes
0 answers
Spring boot 2.4 - must provide an explicit region in the builder or setup environment to supply a region
I'm using Spring Boot 2.4.5 and Spring Cloud 2.3.1 and referred to these docs to implement an S3 service in my Spring boot project - spring blog and spring cloud documentation.
My configurations are as shown…

Ramanujan R
- 1,601
- 2
- 23
- 43
2
votes
1 answer
Spring Cloud AWS support for Spring Boot 2.4
When will Spring Cloud AWS will support Spring Boot 2.4?
What I mean is that which version of Spring Cloud AWS will be supporting Spring Boot 2.4.x?

Kapil Arora
- 151
- 1
- 12
2
votes
0 answers
Why autowired Environment bean is null if I register AmazonS3 bean with name "amazonS3"?
I have a simple SpringBoot 2.3.5 application with spring-cloud-starter-aws-messaging starter added. I have some configuration class as follows:
@Configuration
public class AppConfig {
@Autowired
private Environment env;
@Bean
public…

K. Siva Prasad Reddy
- 11,786
- 12
- 68
- 95
2
votes
1 answer
Spring Boot Application failed on start when using @SqsListener
I'm trying to implement SQS listener in my Spring Boot app (Kotlin). I'm using spring-cloud-aws-messaging. Here is an article that walked me through implementation.
Problem: application is unable to start.
Logs…

wiktorkudej
- 41
- 2
- 5
2
votes
0 answers
Propagate X-B3-TraceId between applications using SNS and SQS
I have 2 spring based applications both of them uses spring-sleuth.
Application-1:
AmazonSNS snsPublisher;
snsPublisher.publish(message)
I would like to add MDC context here somehow, so that application-2 can use the same context. Is there any…

Sumanth Kumar Mora
- 637
- 1
- 5
- 15
2
votes
2 answers
SpringBoot : ServletContext resource cannot resolve S3 URL
I'm developing a Spring Boot application in which I'm integrating Amazon S3 service. This class is my repository to access the S3 bucket :
public class S3FileRepository implements ImageRepository {
private String bucket;
private AmazonS3…

ollaw
- 2,086
- 1
- 20
- 33