Backup files to S3 bucket

Uploadcare allows you to connect an AWS S3 bucket to your Uploadcare project for seamless file backup. Connect the storage once, and the system will do backups.

Note: Only one S3 bucket can be connected to one Uploadcare project.

AWS S3 bucket must be configured as described in the Setting up S3 Bucket.

Only file originals are backed up.

Setting up S3 bucket

You need an Amazon Web Services account with creating a new or selecting an existing bucket in S3 bucket management.

Select a storage settings in your Dashboard, go to "Copy uploads to S3 bucket" and click "Connect bucket" to connect your AWS S3 bucket to Uploadcare project.

  1. Enter your AWS S3 console and go to Buckets.
  2. Open an existing bucket or create a new one. Use DNS-compliant lowercase bucket names such as johnsbucket1.
  3. Set up access control according to your AWS bucket ACL settings. You can allow anyone to read objects from your s3 bucket by enabling the "Make copies public" rule.
  4. Go to the Permissions tab on your bucket's properties pane and add the following settings to your Bucket Policy (where replace <bucket> with the name of your AWS S3 bucket):
    {
    "Version": "2008-10-17",
    "Statement": [
        {
        "Sid": "AllowUploadcareAccess",
        "Effect": "Allow",
        "Principal": {
            "AWS": "arn:aws:iam::899746369614:user/bucket-consumer"
        },
        "Action": [
            "s3:GetBucketLocation",
            "s3:ListBucket",
            "s3:PutObject",
            "s3:GetObject",
            "s3:GetObjectVersion",
            "s3:DeleteObject",
            "s3:DeleteObjectVersion",
            "s3:GetBucketAcl"
        ],
        "Resource": [
            "arn:aws:s3:::<bucket>",
            "arn:aws:s3:::<bucket>/*"
        ]
        },
      ]
    }
  5. Save your Bucket settings and Connect.
    Uploadcare will run tests to ensure it can connect and upload the files to the bucket. Once the bucket has been connected, you can remove these actions from your S3 Bucket Policy:
    s3:GetObject
    s3:GetObjectVersion
    s3:DeleteObject
    s3:DeleteObjectVersion

To disable backup S3 bucket, write to our support.