spring-cloud-aws
spring-cloud-aws copied to clipboard
AmazonSQSAsync default bean is not overrided using service region property
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

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