· 6 years ago · May 11, 2019, 08:06 PM
1private AmazonRDS createAmazonRdsClient() {
2 BasicAWSCredentials basicCredentials = new BasicAWSCredentials(ACCESS_KEY_ID, SECRET_KEY);
3 AWSStaticCredentialsProvider credentialProvider = new AWSStaticCredentialsProvider(basicCredentials);
4
5 return AmazonRDSClientBuilder.standard()
6 .withRegion(Regions.EU_CENTRAL_1)
7 .withCredentials(credentialProvider)
8 .build();
9}