Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass AWSSessionCredentialsProvider in aws-sdk-java-v2 #5334

Closed
dreamerHarshit opened this issue Jun 26, 2024 · 1 comment
Closed

How to pass AWSSessionCredentialsProvider in aws-sdk-java-v2 #5334

dreamerHarshit opened this issue Jun 26, 2024 · 1 comment
Labels
bug This issue is a bug.

Comments

@dreamerHarshit
Copy link

Describe the bug

In the earlier version of aws java SDK, we used to connect with aws s3 using the following code snippet

AmazonS3EncryptionClientV2Builder.standard(). .withCredentials(<Object of AWSSessionCredentialsProvider>) .withEncryptionMaterialsProvider() .withKmsClient() .withEndpointConfiguration().build

Expected Behavior

As it used to support AWSSessionCredentialsProvider in earlier versions so was expecting it to work with new version as well
or if there is any alternative of this?

Current Behavior

Getting error that credentialProvider() in aws-sdk-java-v2 does not take AwsSessionCredentialsProvider as input

Reproduction Steps

NA

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.25.10

JDK version used

java17

Operating System and version

rhel8

@dreamerHarshit dreamerHarshit added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jun 26, 2024
@bhoradc
Copy link

bhoradc commented Jul 17, 2024

Hi @dreamerHarshit,

There is no equivalent of v1 AWSSessionCredentialsProvider in v2. But you will find all the implementing classes of AWSSessionCredentialsProvider implemented in v2 as well. Kindly refer to AwsCredentialsProvider for more details.

Regards,
Chaitanya

@bhoradc bhoradc removed the needs-triage This issue or PR still needs to be triaged. label Jul 17, 2024
@aws aws locked and limited conversation to collaborators Jul 17, 2024
@bhoradc bhoradc converted this issue into discussion #5402 Jul 17, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants