mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
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-...
This commit is contained in:
parent
897ca33a1c
commit
8956ae1987
3 changed files with 14 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ struct S3Helper
|
|||
ref<Aws::Client::ClientConfiguration> config;
|
||||
ref<Aws::S3::S3Client> client;
|
||||
|
||||
S3Helper(const std::string & region);
|
||||
S3Helper(const std::string & profile, const std::string & region);
|
||||
|
||||
ref<Aws::Client::ClientConfiguration> makeConfig(const std::string & region);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue