You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
This is not a big deal but it would be nice if you could override the AmazonSQSClient endpoint configuration like is possible with the other settings such as region. I was developing using Localstack and being able to set the endpoint in the configuration by environment would be nice. To workaround this I subclassed AmazonSQSService and overrode afterPropertiesSet().
@Override
void afterPropertiesSet() throws Exception {
// Set region
Region region = AwsClientUtil.buildRegion(config, serviceConfig)
assert region?.isServiceSupported(SERVICE_NAME as String)
// Create client
client = AmazonSQSClientBuilder.standard()
.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(LOCAL_STACK_SQS_ENDPOINT, region.name))
.withCredentials(AwsClientUtil.buildCredentials(config, serviceConfig))
.withClientConfiguration(AwsClientUtil.buildClientConfiguration(config, serviceConfig))
.build()
defaultQueueName = serviceConfig?.queue ?: ''
}
The text was updated successfully, but these errors were encountered:
This is not a big deal but it would be nice if you could override the AmazonSQSClient endpoint configuration like is possible with the other settings such as region. I was developing using Localstack and being able to set the endpoint in the configuration by environment would be nice. To workaround this I subclassed AmazonSQSService and overrode afterPropertiesSet().
The text was updated successfully, but these errors were encountered: