Connect Opndrive to Amazon S3

Opndrive talks to the S3 API directly from your browser using IAM credentials you supply. There is no account to create and no server of ours in the path, so your objects go straight between your machine and AWS.

Step 1, complete

Provider

Selected
Amazon S3The original object storeChange
2, current step

Add credentials

secret access key is hidden

Fill in the key, secret and bucket

3, not started

Open your drive

Setting up Amazon S3Optional

1. Allow this site in CORS

Open the S3 console, choose your bucket, then Permissions, then Cross-origin resource sharing (CORS).

2. Paste this policy

{
    "AllowedMethods": [
        "GET",
        "PUT",
        "POST",
        "DELETE",
        "HEAD"
    ],
    "AllowedOrigins": [
        "https://your-domain.com"
    ],
    "ExposeHeaders": [
        "ETag"
    ],
    "MaxAgeSeconds": 3000
}

Replace https://your-domain.com with the address you use Opndrive from.

3. Permissions the key needs

  • s3:GetObject
  • s3:PutObject
  • s3:DeleteObject
  • s3:ListBucket

Worth knowing

Scope the IAM policy to this one bucket. A key with account-wide S3 access is stored in your browser and does far more than this app needs.

AWS S3 CORS documentation
Amazon S3 Bucket Browser in Your Web Browser