Unable to find a region via the region provider chain. Again! Maven install in eclipse.

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.008 sec <<< FAILURE!
testLambdaFunctionHandler(com.backtojavaland.imageresizer.LambdaFunctionHandlerTest) Time elapsed: 8.923 sec <<< ERROR!
com.amazonaws.SdkClientException: Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.

This is when following along the tutorial and trying to Run As.. > Maven install

I just can’t get it to work. It should be picking it up from the config file. So I tried adding an environment variable, adding something to settings.xml (although tbh I didn’t know what name to give it). Nothing worked, so I just disabled running tests for the install Run Configuration. At least I have my jar now.

No idea what’g going on!

Leave a comment