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

SQS - SimpleMessageListenerContainerFactory with WebIdentityTokenFileCredentialsProvider(sdk2.x))

Open nag-nagaruru opened this issue 5 years ago • 1 comments

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?

nag-nagaruru avatar Jun 09 '20 18:06 nag-nagaruru

Spring Cloud AWS 2.x is based on AWS SDK 1.x. We are migrating to AWS SDK 2.x in version 3.0.

maciejwalkowiak avatar Jun 10 '20 06:06 maciejwalkowiak