Skip to content

Instantly share code, notes, and snippets.

@mkuehle
Created May 1, 2019 06:35
Show Gist options
  • Save mkuehle/c1402bce763f7b3b26a2d50bebc21359 to your computer and use it in GitHub Desktop.
Save mkuehle/c1402bce763f7b3b26a2d50bebc21359 to your computer and use it in GitHub Desktop.
Amazon API RDS Client erstellen
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