Created
May 1, 2019 06:35
-
-
Save mkuehle/c1402bce763f7b3b26a2d50bebc21359 to your computer and use it in GitHub Desktop.
Amazon API RDS Client erstellen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private AmazonRDS createAmazonRdsClient() { | |
BasicAWSCredentials basicCredentials = new BasicAWSCredentials(ACCESS_KEY_ID, SECRET_KEY); | |
AWSStaticCredentialsProvider credentialProvider = new AWSStaticCredentialsProvider(basicCredentials); | |
return AmazonRDSClientBuilder.standard() | |
.withRegion(Regions.EU_CENTRAL_1) | |
.withCredentials(credentialProvider) | |
.build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment