Store Dreep media in your own Amazon S3 bucket

Create an S3 bucket, attach a four-action IAM policy to a dedicated user, and enter the bucket name, region and keys under Settings, Storage in Dreep. Dreep probes the bucket, then stores originals and variants there.

Connect S3 in five steps

You need an active Starter or Pro plan and an empty Dreep project. The bucket cannot be changed once connected.

  1. 1

    Create the bucket

    Pick the region closest to your users. Keep Block Public Access on, because Dreep signs every request with your key.

  2. 2

    Create an IAM user with the policy below

    Use a dedicated user with only this policy. With SSE-KMS, also allow kms:GenerateDataKey and kms:Decrypt on that key.

  3. 3

    Create an access key

    Generate an access key for that user and copy the Access Key ID and Secret Access Key.

  4. 4

    Enter the details in Dreep

    In Settings, Storage, select AWS S3 and enter the bucket name, its region (for example eu-west-2) and both keys.

  5. 5

    Let Dreep probe and save

    Dreep writes and deletes a probe object and lists the bucket. On success every new upload in the project goes to S3.

The least-privilege IAM policy

These four actions cover every S3 call Dreep makes. Replace acme-media with your bucket name.

dreep-byob-policy.json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"],
      "Resource": "arn:aws:s3:::acme-media/*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::acme-media"
    }
  ]
}

Already have files in this bucket?

BYOB and import do different jobs. BYOB makes Dreep write new uploads and variants into your bucket. The separate Amazon S3 importer under Integrations copies objects that already exist into a Dreep project as a one-off background job, so read-only credentials are enough for it.

Frequently asked questions

Can I keep S3 Block Public Access enabled?

Yes. Dreep signs every request with your IAM key and serves media through Dreep CDN URLs, so the bucket never needs to be public.

Why does Dreep need s3:ListBucket?

Without it, S3 returns 403 rather than 404 for a missing object, and Dreep needs the 404 to tell a variant not yet generated from a permissions failure.

Do I need a CORS configuration on the S3 bucket?

No. Browsers upload to the URL Dreep returns on cdn.dreep.cloud, and Dreep writes to S3 from its own servers.

Can I use an IAM role instead of access keys?

Not today. Use a dedicated IAM user scoped by the policy on this page and rotate its key on your normal schedule.

Related

Put your S3 bucket behind Dreep

Create a Starter or Pro project, attach the four-action IAM policy, and connect the bucket before your first upload.