I have gone through the question titled \"Setting the AWS region programmatically 1\" but it doesn\'t provide all the answers I need.
Q1: I\'m getting a SDKCli
SDKCli
withRegion(Regions.DEFAULT_REGION) helped me to solve my issue
return AmazonS3ClientBuilder.standard() .withCredentials(new AWSStaticCredentialsProvider(awsCredentials)) .withRegion(Regions.DEFAULT_REGION) .build();