Object Storage
Object Storage keeps files in buckets that any S3 client can read and write. Each bucket lives in one region and has one access key that opens only that bucket.
Go to Services, then click Object Storage.


Note
Reading buckets needs the Owner, Admin, Developer, Viewer, or Billing role. Every change on this page needs one of these roles, except Viewer. A team with a server on a free trial cannot create a bucket.
Create a bucket
- Go to Services > Object Storage. Click Create bucket.
- Type a Name. Use lowercase letters, digits, dots, and hyphens. End the name with a letter or a digit.
- Select the Region. Objects stay in this region. You cannot move a bucket to another region later.
- Click Create bucket.


The console adds the number of your team and the region to the name. A bucket that you name media gets a full name such as 52-bom-media. Use the full name in your S3 client.
The Save your credentials dialog opens. It shows the Endpoint URL, the Bucket, the Access key, and the Secret key.
Warning
The console shows the secret key only in this dialog. Copy it before you click Done. If you lose it, rotate the key to get a new one.
Click Copy as .env to copy all four values as environment variables.
Connect an S3 client
Use the values from the Save your credentials dialog. The Settings tab of the bucket shows the endpoint, the bucket name, and the access key again, under Connection. Set your client to path-style addressing and signature version 4.
This example lists a bucket with the AWS command line client:
export AWS_ACCESS_KEY_ID=<access key>
export AWS_SECRET_ACCESS_KEY=<secret key>
aws s3 ls s3://52-bom-media --endpoint-url <endpoint URL>To send the backups of a site to the bucket, type the same values in Pilot. Read Keep a copy offsite.
Manage files
Click a bucket. The Files tab lists its folders and files, 20 on a page.


| To | Do this |
|---|---|
| Open a folder | Click its name. Click All files to go back to the top. |
| Find a file | Type the start of its name in Search by name. |
| Upload files | Click Upload and select the files. A file with the same name replaces the old one. |
| Download a file | Click the download icon on its row. |
| Delete files or folders | Select the rows. Click Delete, then Delete again to confirm. |
Warning
A deleted folder loses everything inside it. You cannot undo a delete.
The console uploads files of up to 5 GB. Use an S3 client for a larger file. You can delete at most 1000 objects at one time.
Set a quota
A quota stops a bucket from growing past a limit. A bucket without a quota grows as you upload.
- Click the bucket. Click the Settings tab.
- Under Quota, click Set quota.
- Type the Size limit (GiB), the Object limit, or both.
0means no limit. - Click Save quota.


The bucket refuses an upload that passes a limit.
Allow a website to use the bucket
A web page can upload to and read from the bucket in the browser, with a presigned URL, only when the bucket allows the website of that page. For example, a site at https://erp.example.com that keeps its files in the bucket must be allowed. The console itself is always allowed.
- Click the bucket. Click the Settings tab.
- Under Browser access, click Edit origins.
- Type each website on its own line, as
https://and the host name, such ashttps://erp.example.com. Add:portfor a port that is not the default. Do not add a path or a*. - Click Save origins.
A site that answers on more than one domain needs each of its domains on the list. To remove a website, delete its line and save. Leave the list empty to allow no website except the console.
Note
The region must run a storage version that supports browser access. If it does not, Save origins shows an error and the list stays as it was.
Rotate the key
- Click the bucket. Click the Settings tab.
- Under Connection, click Rotate key.
- Click Rotate key to confirm.
- Copy the new values from the Save your credentials dialog.
Everything that uses the old key stops working at once. Update each client with the new key.
Delete a bucket
You can delete only an empty bucket. This deletes the bucket and its access key. You cannot undo this.
- Delete all objects in the Files tab.
- Click the Settings tab. Under Delete bucket, click Delete bucket.
- Type the name of the bucket. Click Delete bucket.
Cost
Your team pays one Object Storage plan for each region that holds a bucket. All buckets in the region share the storage that the plan includes. The plan stops when you delete the last bucket in the region.
When the region has a price, the Create bucket dialog shows the included storage and the price for a month. Read How billing works for the invoice.