Questions tagged [spring-cloud-aws]

Questions related to integrating with the Spring Cloud AWS libraries

176 questions
17
votes
1 answer

Disable Cloudformation in Spring Cloud AWS

How can I disable the Cloudformation in a spring boot app that using spring cloud AWS? I keep getting this error when running my app on amazon: ... Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate…
14
votes
1 answer

Prevent spring-cloud-aws-messaging from trying to stop the queue

I'm using spring-cloud-aws-messaging in a Spring Boot project. I have SQS queue created manually in AWS. It is being used like: @SqsListener("${sqs.name.incoming}") public void listen(String message) { ... } It works fine. But when I stop my…
Kartik
  • 7,677
  • 4
  • 28
  • 50
14
votes
3 answers

Unable to retrieve the requested metadata /latest/meta-data/public-hostname

I'm deploying a springboot application with spring-cloud-stream and binder for AWS Kinesis. The application works fine when is deployed on aws elastic beanstalk if the beanstalk is configured with public ip. When we set beanstalk with private ip,…
14
votes
1 answer

How to disable AWS parameter store autoconfiguration for tests?

I have added spring-cloud-starter-aws-parameter-store-config dependency as explained in the spring documentation. Now, for unit tests I want to disable parameter store configuration. But not able to do it. I tried setting following property in…
sidgate
  • 14,650
  • 11
  • 68
  • 119
14
votes
2 answers

Using SqsListener with SNS and SQS

I'm using spring-cloud-aws's SqsListener to receive AWS SNS HTTP Notifications in JSON Format from AWS's Simple Queue Service (SQS). This is the code for the listener: @SqsListener(value = "my-queue", deletionPolicy =…
msp
  • 3,272
  • 7
  • 37
  • 49
11
votes
1 answer

Spring Boot App using Spring Cloud AWS RDS Aurora - how to distribute read queries

I've got a Spring Boot app that's using an AWS RDS DB. I'm trying to get a RDS Aurora / Postgres DB working with read replicas. I've got the app running, however I cannot see any traffic going to the reader nodes. Set up is Spring boot (2.2.7),…
stringy05
  • 6,511
  • 32
  • 38
11
votes
5 answers

What is the required configuration steps to have a Spring Boot application send simple e-mails via AWS SES?

I have been fighting with this for several hours today. I started with the documentation at http://cloud.spring.io/spring-cloud-aws/spring-cloud-aws.html#_sending_mails which doesn't really say a lot about the specific steps. It just says that the…
deinspanjer
  • 495
  • 1
  • 7
  • 22
11
votes
5 answers

Springboot with Spring-cloud-aws and cloudwatch metrics

I would like to start using metrics in my Springboot app and I would also like to publish them my amazon cloudwatch I know that with Springboot we can activate spring-actuator that provides in memory metrics and published them to the /metrics…
Johny19
  • 5,364
  • 14
  • 61
  • 99
10
votes
2 answers

Spring Cloud AWS Issue with setting manual acknowledge of SQS message

I'm trying to implement logic with manual deleting of AWS SQS message using spring-cloud-aws-messaging. This feature was implemented in scope of this ticket from the example in tests @SqsListener(value = "queueName", deletionPolicy =…
Loniks
  • 489
  • 1
  • 8
  • 19
10
votes
1 answer

What does @enablesns @enablesqs annotations do (spring cloud aws)?

I have been trying to find documentation of @enablesns @enablesqs annotations but can't find them. They seem to be required for the sqs and sns integration to work. But I'd just like to have a better understanding, and be sure I'm not using them…
froi
  • 7,268
  • 5
  • 40
  • 78
9
votes
1 answer

Assume Role with Spring Cloud AWS Autoconfiguration

In order to publish messages to SNS I need to assume the correct role, so when using AWS SDK I create an AmazonSNS bean like this: @Bean public AmazonSNS amazonSnsClient( @Value("${cloud.aws.credentials.accessKey}") String accessKey, …
Maciej
  • 546
  • 4
  • 15
9
votes
1 answer

Configure Amazon SQS queue name in Spring Boot

I'm using AmazonSQS & Spring Boot (spring-cloud-aws-messaging). I've configured a message listener to receive messages from the queue with the annotation @SqsListener. @SqsListener(value = "indexerQueue", deletionPolicy =…
nicolas
  • 121
  • 1
  • 7
8
votes
1 answer

Issue testing spring cloud SQS Listener

Environment Spring Boot: 1.5.13.RELEASE Cloud: Edgware.SR3 Cloud AWS: 1.2.2.RELEASE Java 8 OSX 10.13.4 Problem I am trying to write an integration test for SQS. I have a local running localstack docker container with SQS running on TCP/4576 In my…
David
  • 7,652
  • 21
  • 60
  • 98
7
votes
1 answer

Unknown host when using localstack with Spring Cloud AWS 2.3

"ResourceLoader" with AWS S3 works fine with these properties: cloud: aws: s3: endpoint: s3.amazonaws.com <-- custom endpoint added in spring cloud aws 2.3 credentials: accessKey: XXXXXX secretKey: XXXXXX …
ravikant
  • 415
  • 1
  • 5
  • 13
7
votes
2 answers

Multiple AWS SQS Queues with different Credentials in Spring Boot

I have a Spring Boot Application and want to receive Messages from multiple AWS SQS queues. These queues all have their own credentials (and there is sadly nothing I can do about that). None of these credentials can access one of the other queues,…
stschmitt
  • 175
  • 1
  • 9
1
2 3
11 12