mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
Add support for configuring S3 storage class via the storage-class parameter for S3BinaryCacheStore. This allows users to optimize costs by selecting appropriate storage tiers (STANDARD, GLACIER, INTELLIGENT_TIERING, etc.) based on access patterns. The storage class is applied via the x-amz-storage-class header for both regular PUT uploads and multipart upload initiation.
938 B
938 B
| synopsis | prs | issues | ||
|---|---|---|---|---|
| S3 binary cache stores now support storage class configuration |
|
|
S3 binary cache stores now support configuring the storage class for uploaded objects via the storage-class parameter. This allows users to optimize costs by selecting appropriate storage tiers based on access patterns.
Example usage:
# Use Glacier storage for long-term archival
nix copy --to 's3://my-bucket?storage-class=GLACIER' /nix/store/...
# Use Intelligent Tiering for automatic cost optimization
nix copy --to 's3://my-bucket?storage-class=INTELLIGENT_TIERING' /nix/store/...
The storage class applies to both regular uploads and multipart uploads. When not specified, objects use the bucket's default storage class.
See the S3 storage classes documentation for available storage classes and their characteristics.