}
private static String[] getAwsCredentials() {
InstanceProfileCredentialsProvider ipcp = new InstanceProfileCredentialsProvider();
try {
ipcp.refresh();
return new String[]{ipcp.getCredentials().getAWSAccessKeyId(), ipcp.getCredentials().getAWSSecretKey()};
} catch (Exception e) {
return new String[]{"", ""};
}
}