diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-11-15 14:16:04 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-11-15 14:18:20 +0100 |
commit | 8956ae19879e0367250002b94e399d8c771f37a1 (patch) | |
tree | 713b1dd7ec831df06a65e0a93d45d3826e36aa55 /src/libstore/download.cc | |
parent | 897ca33a1c5df5da77e854dd7dd88dadea4681c8 (diff) |
Add a "profile" option to S3BinaryCacheStore
This allows specifying the AWS configuration profile to use. E.g.
nix copy --from s3://my-cache?profile=aws-dev-account /nix/store/cf3isrlqavvd5w7rpky1fa8j9lcnlggm-...
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r-- | src/libstore/download.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 70f9b1f5e..da31029b4 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -533,7 +533,7 @@ struct CurlDownloader : public Downloader // FIXME: do this on a worker thread sync2async<DownloadResult>(success, failure, [&]() -> DownloadResult { #ifdef ENABLE_S3 - S3Helper s3Helper(Aws::Region::US_EAST_1); // FIXME: make configurable + S3Helper s3Helper("", Aws::Region::US_EAST_1); // FIXME: make configurable auto slash = request.uri.find('/', 5); if (slash == std::string::npos) throw nix::Error("bad S3 URI '%s'", request.uri); |