I've encountered this when using IRSA
java.lang.RuntimeException: com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [
...
WebIdentityTokenCredentialsProvider: To use assume role profiles the aws-java-sdk-sts module must be on the class path.
...
]
IRSA uses WebIdentityTokenCredentialsProvider, so probably aws-java-sdk-sts is needed in pom.xml.