Skip to content

Commit

Permalink
Try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebusm committed Oct 16, 2024
1 parent e15d41a commit f90fad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/arcticdb/storage/s3/s3_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ S3Storage::S3Storage(const LibraryPath &library_path, OpenMode mode, const Confi
s3_client_ = std::make_unique<MockS3Client>();
}
else if (conf.aws_auth() == arcticdb::proto::storage::AWSAuthMethod::STS_PROFILE_CREDENTIALS_PROVIDER){
Aws::Config::ReloadCachedConfigFile(); // config files loaded in Aws::InitAPI; It runs once at first S3Storage object construct; reload to get latest
auto cred_provider = Aws::MakeShared<Aws::Auth::STSProfileCredentialsProvider>("DefaultAWSCredentialsProviderChain", conf.aws_profile());
s3_client_ = std::make_unique<RealS3Client>(cred_provider, get_s3_config(conf), Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Never, conf.use_virtual_addressing());
}
Expand Down

0 comments on commit f90fad9

Please sign in to comment.