Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

AmazonSQSAsync default bean is not overrided using service region property #791

Open
renato04 opened this issue Oct 1, 2021 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@renato04
Copy link

renato04 commented Oct 1, 2021

Type: Bug

Component:
SQS

Describe the bug
I'm using the region properties to override the default region like this

cloud.aws.sqs.endpoint=http://localhost:4566
cloud.aws.sqs.region=sa-east-1

The injected object has not the region configured properly as shown in the following image

image

Sample
Add the properties

cloud.aws.sqs.endpoint=http://localhost:4566
cloud.aws.sqs.region=sa-east-1

The bean configuration class

@Configuration
public class AwsConfig {

	@Bean
	public QueueMessagingTemplate queueMessagingTemplate(AmazonSQSAsync amazonSQSAsync) {
		return new QueueMessagingTemplate(amazonSQSAsync);
	}
}

To work around this I did the solution from this issue #790

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug
Development

No branches or pull requests

1 participant