· 4 years ago · Mar 15, 2021, 02:50 PM
1if (Storage.StorageType.AWS_S3.equals(storageType)) {
2 switch (awsAuthProvider) {
3 case SECRET_KEY:
4 s3 = buildS3ClientWithSecretKey();
5 break;
6 case INSTANCE_PROFILE:
7 s3 = buildS3ClientWithInstanceProfile();
8 break;
9 default:
10 LOG.error("Unsupported AWS authentication provider, check the dtrepo.awsAuthProvider value in properties file.");
11 }
12 }
13 }