You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements AWS S3 Transfer Acceleration for binary cache stores to
improve upload and download performance when accessing S3 buckets from
geographically distant locations. Transfers are routed through
CloudFront edge locations for better performance.
Usage:
nix copy nixpkgs.hello \
--to 's3://my-cache?region=ap-northeast-1&use-transfer-acceleration=true'
Requirements:
- DNS-compliant bucket names (3-63 chars, lowercase, numbers, hyphens)
- No dots in bucket names
- Transfer Acceleration enabled on the S3 bucket
- Only applies to AWS S3 (ignored for custom endpoints)
Copy file name to clipboardExpand all lines: src/libstore/s3-binary-cache-store.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,27 @@ Your account will need an IAM policy to support uploading to the bucket:
83
83
}
84
84
```
85
85
86
+
### S3 Transfer Acceleration
87
+
88
+
For faster uploads and downloads when accessing S3 buckets from geographically distant locations, you can enable AWS S3 Transfer Acceleration. This routes transfers through CloudFront edge locations for improved performance.
89
+
90
+
To enable transfer acceleration, add the `use-transfer-acceleration=true` parameter to your S3 URL:
- Bucket names cannot contain dots (`.`) - e.g., `my.bucket.name` will not work
100
+
- Transfer Acceleration must be enabled on your S3 bucket (see [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/transfer-acceleration.html))
101
+
- Additional charges apply for Transfer Acceleration (see AWS pricing)
102
+
103
+
> **Note**
104
+
>
105
+
> Transfer Acceleration only works with AWS S3 buckets. It has no effect when using custom endpoints for S3-compatible services like MinIO.
106
+
86
107
### Examples
87
108
88
109
With bucket policies and authentication set up as described above, uploading works via [`nix copy`](@docroot@/command-ref/new-cli/nix3-copy.md) (experimental).
@@ -101,4 +122,11 @@ With bucket policies and authentication set up as described above, uploading wor
0 commit comments