Skip to content

Commit 1c3bb02

Browse files
committed
Add AWS STS dependency to support IAM roles for service accounts
Although `WebIdentityTokenCredentialsProvider` is part of the default credentials chain, it will only work if the `aws-java-sdk-sts` module is on the class path.
1 parent e2eb047 commit 1c3bb02

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

geowebcache/s3storage/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<name>AWS S3 Storage</name>
1515
<url>https://geowebcache.osgeo.org</url>
1616

17+
<properties>
18+
<aws.version>1.12.261</aws.version>
19+
</properties>
20+
1721
<dependencies>
1822
<dependency>
1923
<groupId>org.geowebcache</groupId>
@@ -23,7 +27,13 @@
2327
<dependency>
2428
<groupId>com.amazonaws</groupId>
2529
<artifactId>aws-java-sdk-s3</artifactId>
26-
<version>1.12.261</version>
30+
<version>${aws.version}</version>
31+
</dependency>
32+
<dependency>
33+
<!-- Needed to support IAM roles for service accounts -->
34+
<groupId>com.amazonaws</groupId>
35+
<artifactId>aws-java-sdk-sts</artifactId>
36+
<version>${aws.version}</version>
2737
</dependency>
2838

2939
<dependency>

0 commit comments

Comments
 (0)