Skip to content

Commit

Permalink
add WebIdentityTokenFileCredentialsProvider to AwsCredentialsProvider…
Browse files Browse the repository at this point in the history
…Chain
  • Loading branch information
scottaubrey authored and glenrobson committed Sep 25, 2024
1 parent 19a2bb3 commit 0e1364d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
import software.amazon.awssdk.auth.credentials.SystemPropertyCredentialsProvider;
import software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient;
import software.amazon.awssdk.regions.Region;
Expand Down Expand Up @@ -72,6 +73,7 @@ public String secretAccessKey() {
}
}));
}
builder.addCredentialsProvider(WebIdentityTokenFileCredentialsProvider.builder().build());
builder.addCredentialsProvider(ProfileCredentialsProvider.create());
builder.addCredentialsProvider(ContainerCredentialsProvider.builder().build());
builder.addCredentialsProvider(InstanceProfileCredentialsProvider.builder().build());
Expand Down

0 comments on commit 0e1364d

Please sign in to comment.