Understanding AWS secrets manager

Опубликовано: 14 Апрель 2020
на канале: Java Lazy Coder
2,141
22

AWS secrets manager in spring boot
Need to add dependency

// Sample snippet
GetSecretValueRequest getSecretValueRequest = new GetSecretValueRequest()
.withSecretId(secretName);
GetSecretValueResult getSecretValueResult = null;
getSecretValueResult = client.getSecretValue(getSecretValueRequest);

System.out.println("Secret " + getSecretValueResult.getSecretString());
System.out.println("Name " + getSecretValueResult.getName());