Commit 71324244 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

Update AwsTestUtils.java - use RESOURCE_PREFIX

parent ab417964
Pipeline #32123 passed with stages
in 30 minutes and 36 seconds
......@@ -38,7 +38,7 @@ public class AwsTestUtils extends TestUtils {
String client_credentials_clientid;
ServicePrincipal sp;
private String awsOauthCustomScope;
private final static String ENVIRONMENT = "ENVIRONMENT";
private final static String ENVIRONMENT = "RESOURCE_PREFIX";
private final static String REGION = "AWS_REGION";
......@@ -126,15 +126,8 @@ public class AwsTestUtils extends TestUtils {
}
private String getSsmParameter(String parameterKey) {
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;
GetParameterRequest paramRequest = (new GetParameterRequest()).withName(parameterKey).withWithDecryption(true);
GetParameterResult paramResult = ssmManager.getParameter(paramRequest);
return paramResult.getParameter().getValue();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment