Skip to content
Snippets Groups Projects
Commit ab417964 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

Update AwsTestUtils.java - add debug stmts

parent 270830eb
No related branches found
No related tags found
1 merge request!43Service Principal Implementation
Checking pipeline status
......@@ -126,9 +126,15 @@ public class AwsTestUtils extends TestUtils {
}
private String getSsmParameter(String parameterKey) {
System.out.println(parameterKey);
GetParameterRequest paramRequest = (new GetParameterRequest()).withName(parameterKey).withWithDecryption(true);
GetParameterResult paramResult = ssmManager.getParameter(paramRequest);
return paramResult.getParameter().getValue();
String p ="";
try {
GetParameterRequest paramRequest = (new GetParameterRequest()).withName(parameterKey).withWithDecryption(true);
GetParameterResult paramResult = ssmManager.getParameter(paramRequest);
p= paramResult.getParameter().getValue();
}catch(Exception e)
{
System.out.println("SSM parameter not found="+parameterKey);
}
return p;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment