custom aws jar file, not finding credentials

27 views
Skip to first unread message

Pablo Vidaurri

unread,
Aug 17, 2022, 11:23:07 PM8/17/22
to CAS Community
I have a custom jar file that makes use of awssdk jar and publishes to SNS. This jar works fine with a demo gradle project but I cannot get it to work with CAS 6.3.x.

java.lang.NullPointerException: Credentials must not be null. at software.amazon.awssdk.utils.Validate.paramNotNull(Validate.java:156) ~[utils-2.17.216.jar!/:?]

I have tried to included the credentials in the standard ~/aws/credentials file (which the demo finds), tried setting ENV vars, tried passing into gradlew command line with -Daws.accessKeyId=xxx -Daws.secretKey=yyy options but I still get the credentials must not be null.

Is CAS expecting credentials in a different location or is it doing something to clobber the standard location?

-psv

Pablo Vidaurri

unread,
Sep 8, 2022, 11:00:46 PM9/8/22
to CAS Community, Pablo Vidaurri
To follow up on this ... I was able to get this to work after adding the proper dependencies in the build.gradle file ... specifically, I was missing the "mavenBom 'software.amazon.awssdk:bom:2.17.xxx" in my dependencyManagement block.
Reply all
Reply to author
Forward
0 new messages