Skip to content

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.

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

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:PutObject and s3:DeleteObject (and turn off Write/Delete in Sendcrate’s Key permissions section).
  • Public delivery via bucket policy: Add s3:GetBucketPolicy and s3:PutBucketPolicy on arn:aws:s3:::my-bucket if you want Sendcrate to toggle per-object/per-folder Public links automatically.
  • SQS live change detection: Add sqs:ReceiveMessage and sqs:DeleteMessage on your SQS queue ARN.

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.)

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.

Without event notifications, Sendcrate lists objects whenever you open a folder. To have external uploads and deletes appear automatically:

  1. Create a standard Amazon SQS queue in your AWS account.
  2. Add an SQS access policy allowing your S3 bucket to send messages (sqs:SendMessage).
  3. On the S3 bucket (Properties → Event notifications), add a notification for All object create events and All object removal events targeting that SQS queue.
  4. Grant your Sendcrate IAM user sqs:ReceiveMessage and sqs:DeleteMessage on the queue.
  5. 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.