Skip to content

Commit

Permalink
move back to InstanceProfileCredentialsProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
smiklosovic committed May 31, 2023
1 parent e24c752 commit 47b1e61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public S3Client getEncryptingClient(S3Client wrappedClient, String kmsKeyId) {

private S3Client getDefaultS3Client(S3Configuration s3Conf, ProxySettings proxySettings) {
S3ClientBuilder builder = S3Client.builder()
.credentialsProvider(DefaultCredentialsProvider.create());
.credentialsProvider(InstanceProfileCredentialsProvider.create());
if (s3Conf.awsRegion != null)
builder.region(Region.of(s3Conf.awsRegion));

Expand Down

0 comments on commit 47b1e61

Please sign in to comment.