Skip to content

Commit 7e0ea7f

Browse files
committed
Add dependency on aws sts to support IAM roles for service accounts
Despite since `software.amazon.awssdk:2.10.11`, the `WebIdentityTokenFileCredentialsProvider` is part of the default credentials chain, it will only be enabled if `software.amazon.awssdk:sts` is on the classpath, which is mentioned in the javadocs: "Use of this credentials provider requires the 'sts' module to be on the classpath". See aws/aws-sdk-java#2136
1 parent 91281ef commit 7e0ea7f

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎plugin/cog/cog-rangereader-s3/pom.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
<groupId>software.amazon.awssdk</groupId>
3434
<artifactId>auth</artifactId>
3535
</dependency>
36+
<dependency>
37+
<groupId>software.amazon.awssdk</groupId>
38+
<artifactId>sts</artifactId>
39+
</dependency>
3640
</dependencies>
3741

3842
<build>

‎plugin/cog/pom.xml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
<artifactId>auth</artifactId>
8383
<version>${aws.version}</version>
8484
</dependency>
85+
<dependency>
86+
<groupId>software.amazon.awssdk</groupId>
87+
<artifactId>sts</artifactId>
88+
<version>${aws.version}</version>
89+
</dependency>
8590
<dependency>
8691
<groupId>org.ehcache</groupId>
8792
<artifactId>ehcache</artifactId>
@@ -90,4 +95,4 @@
9095
</dependencies>
9196
</dependencyManagement>
9297

93-
</project>
98+
</project>

0 commit comments

Comments
 (0)