Amazon S3
Amazon S3 supports all four Sendcrate delivery modes (including per-folder Public links via bucket policy), custom CloudFront public base URLs, and live change detection via SQS.
Connection settings
Section titled “Connection settings”In Sendcrate, go to Add bucket and choose Amazon S3:
| Field | Example / Notes |
|---|---|
| Region | us-east-1 (Sendcrate automatically derives https://s3.<region>.amazonaws.com) |
| Bucket name | my-bucket |
| Base path (optional) | sendcrate/ — restricts browsing and sharing to a prefix inside the bucket |
| Access key ID / Secret access key | Credentials for a dedicated IAM user scoped to this bucket |
| Public base URL (optional) | https://d1x2y3.cloudfront.net — serves Public links through CloudFront or a custom domain |
Scoped IAM policy
Section titled “Scoped IAM policy”Create an IAM user dedicated to Sendcrate and attach a least-privilege inline policy scoped to your bucket. Replace my-bucket with your bucket name:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "SendcrateBucket", "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetLifecycleConfiguration" ], "Resource": "arn:aws:s3:::my-bucket" }, { "Sid": "SendcrateObjects", "Effect": "Allow", "Action": [ "s3:GetObject", "s3:PutObject", "s3:DeleteObject" ], "Resource": "arn:aws:s3:::my-bucket/*" } ]}- Read-only sharing: Remove
s3:PutObjectands3:DeleteObject(and turn off Write/Delete in Sendcrate’s Key permissions section). - Public delivery via bucket policy: Add
s3:GetBucketPolicyands3:PutBucketPolicyonarn:aws:s3:::my-bucketif you want Sendcrate to toggle per-object/per-folder Public links automatically. - SQS live change detection: Add
sqs:ReceiveMessageandsqs:DeleteMessageon your SQS queue ARN.
Browser access (CORS)
Section titled “Browser access (CORS)”Browser uploads and gated downloads talk straight to S3. In S3 Console → Bucket → Permissions → Cross-origin resource sharing (CORS), add:
[ { "AllowedHeaders": ["*"], "AllowedMethods": ["GET", "PUT", "HEAD"], "AllowedOrigins": [ "https://app.sendcrate.io", "https://send.sendcrate.io" ], "ExposeHeaders": ["ETag", "Content-Length", "Content-Range"], "MaxAgeSeconds": 3000 }](If you self-host, replace AllowedOrigins with your own app_url and share_url.)
Staged upload lifecycle rule
Section titled “Staged upload lifecycle rule”Browser uploads stage under .sendcrate/staging/ before being promoted. To ensure interrupted uploads and unfinished multipart parts are automatically cleaned up, add a lifecycle rule in S3 Console → Bucket → Management → Lifecycle rules (or via aws s3api put-bucket-lifecycle-configuration):
{ "Rules": [ { "ID": "sendcrate-staging", "Filter": { "Prefix": ".sendcrate/staging/" }, "Status": "Enabled", "Expiration": { "Days": 1 }, "AbortIncompleteMultipartUpload": { "DaysAfterInitiation": 1 } } ]}Sendcrate checks for this rule whenever you save the bucket connection.
Live change detection (SQS)
Section titled “Live change detection (SQS)”Without event notifications, Sendcrate lists objects whenever you open a folder. To have external uploads and deletes appear automatically:
- Create a standard Amazon SQS queue in your AWS account.
- Add an SQS access policy allowing your S3 bucket to send messages (
sqs:SendMessage). - On the S3 bucket (Properties → Event notifications), add a notification for All object create events and All object removal events targeting that SQS queue.
- Grant your Sendcrate IAM user
sqs:ReceiveMessageandsqs:DeleteMessageon the queue. - Paste the SQS queue URL (for example
https://sqs.eu-west-2.amazonaws.com/123456789012/sendcrate-events) into Live change detection in Sendcrate’s bucket settings.