File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ use std::time::Duration;
22
22
use std:: { cmp, env} ;
23
23
24
24
use async_trait:: async_trait;
25
+ use aws_config:: default_provider:: credentials;
25
26
use aws_sdk_s3:: config:: Region ;
26
27
use aws_sdk_s3:: operation:: create_multipart_upload:: CreateMultipartUploadOutput ;
27
28
use aws_sdk_s3:: operation:: get_object:: GetObjectError ;
@@ -150,7 +151,9 @@ impl S3Store {
150
151
} ) ;
151
152
let s3_client = {
152
153
let http_client = HyperClientBuilder :: new ( ) . build ( TlsConnector :: new ( config, jitter_fn. clone ( ) ) ) ;
154
+ let credential_provider = credentials:: default_provider ( ) . await ;
153
155
let mut config_builder = aws_config:: from_env ( )
156
+ . credentials_provider ( credential_provider)
154
157
. region ( Region :: new ( Cow :: Owned ( config. region . clone ( ) ) ) )
155
158
. http_client ( http_client) ;
156
159
// TODO(allada) When aws-sdk supports this env variable we should be able
You can’t perform that action at this time.
0 commit comments