File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
validator/src/main/java/com/amazon/aoc/clients Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 66import com .amazon .aoc .models .prometheus .PrometheusMetric ;
77import com .amazon .aoc .models .prometheus .PrometheusQueryResult ;
88import com .amazonaws .auth .AWS4Signer ;
9- import com .amazonaws .auth .profile . ProfileCredentialsProvider ;
9+ import com .amazonaws .auth .DefaultAWSCredentialsProviderChain ;
1010import com .amazonaws .http .AWSRequestSigningApacheInterceptor ;
1111import com .amazonaws .util .IOUtils ;
1212import com .fasterxml .jackson .databind .ObjectMapper ;
@@ -44,7 +44,7 @@ public CortexClient(Context context) {
4444 this .httpClient = HttpClients .custom ()
4545 .addInterceptorLast (
4646 new AWSRequestSigningApacheInterceptor (APS_SERVICE_NAME , signer ,
47- new ProfileCredentialsProvider ()))
47+ new DefaultAWSCredentialsProviderChain ()))
4848 .setRetryHandler (new DefaultHttpRequestRetryHandler ())
4949 .setDefaultRequestConfig (
5050 RequestConfig .custom ()
You can’t perform that action at this time.
0 commit comments