AWS Java SDK - Unable to find a region via the region provider chain

后端 未结 7 1939
悲哀的现实
悲哀的现实 2020-12-05 17:17

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

7条回答
  •  一整个雨季
    2020-12-05 17:46

    This worked for me.

    AmazonS3 s3Client = AmazonS3ClientBuilder.standard().withCredentials(new ProfileCredentialsProvider()).withRegion(Regions.AP_SOUTH_1).build();
    

提交回复
热议问题