spring-cloud-aws
spring-cloud-aws copied to clipboard
SQS - SimpleMessageListenerContainerFactory with WebIdentityTokenFileCredentialsProvider(sdk2.x))
I am using springcloud messaging for sqs with latest release 'org.springframework.cloud:spring-cloud-aws-messaging:2.2.2.RELEASE'
Sample code snippet:
//auto wired AmazonSQSAsync amazonSqs
SimpleMessageListenerContainerFactory factory = new SimpleMessageListenerContainerFactory();
factory.setAmazonSqs(amazonSqs);
currently using the credentials in the following way
AWSCredentialsProvider credentialsProvider() {
return InstanceProfileCredentialsProvider.getInstance();
}
I would like to use the WebIdentityTokenFileCredentialsProvider for credential provider. which is part of SDK2.x Does Springcloud support SqsAsyncClientBuilder(sdk2.x)
is it possible to achieve this with the currently available spring cloud releases?
Spring Cloud AWS 2.x is based on AWS SDK 1.x. We are migrating to AWS SDK 2.x in version 3.0.