spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

AmazonSQSAsync default bean is not overrided using service region property

Open renato04 opened this issue 4 years ago • 0 comments

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

renato04 avatar Oct 01 '21 11:10 renato04