Connect Wasabi storage
This article shows you how to create a Wasabi bucket and connect it to PlayerMagick.
This is optional. PlayerMagick stores your videos for you, with nothing to set up. Connecting your own bucket is only for accounts where it is turned on: accounts that already used their own storage, and accounts where support turned it on at your request. See How PlayerMagick stores your videos.
Before you start
Check two Wasabi rules that matter for video:
- Downloads: Wasabi does not charge per gigabyte watched, but it has a fair-use rule: if your visitors download much more each month than you store, Wasabi may ask you to change plan. For a big launch, Cloudflare R2 is the safer choice.
- Minimum storage time: Wasabi charges deleted files for a minimum period after upload. PlayerMagick deletes old versions of a video 7 days after you replace it, so replacing files often costs a little more on Wasabi.
- Public files: some Wasabi accounts cannot make buckets public until Wasabi enables it.
Wasabi sometimes renames buttons. If a label below does not match exactly, look for the closest one.
Step 1: Create a bucket
- Log in to the Wasabi console and open Buckets.
- Click Create Bucket.
- Enter a name, for example
acme-sales-videos. - Choose a Region close to most of your visitors, for example
us-east-1oreu-central-1. Write it down. - Click Create Bucket.
Step 2: Let visitors load the files
- Open your bucket and go to Settings → Policies (bucket policy).
- Paste this policy, replacing
YOUR-BUCKETwith your bucket name:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadForPlayerMagick",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET/*"
}
]
}
- Click Save.
This lets anyone with a file's address read that file, which is what a video player on a public page needs. It does not let anyone list, change or delete your files.
Step 3: Create a key for PlayerMagick
- Open Access Keys.
- Click Create Access Key.
- Copy the Access Key and Secret Key. Wasabi shows the secret only once. You can also download them as a file.
Step 4: Connect the bucket in PlayerMagick
- Open the Storage step of the first setup, or go to Settings → Storage and click Connect a bucket.
- Choose Wasabi.
- Fill in:
- Region : from step 1, for example
eu-central-1. - Bucket name: from step 1.
- Access key ID and Secret access key: from step 3.
- Public URL for playback:
https://s3.YOUR-REGION.wasabisys.com/YOUR-BUCKET, for examplehttps://s3.eu-central-1.wasabisys.com/acme-sales-videos. If you put a network such as Cloudflare in front of the bucket, use that address instead.
- Region : from step 1, for example
- Click Test connection and wait for the four checks: "Wrote a test file", "Read it back through the public URL", "Deleted it", "Set up browser uploads (CORS) for you".
- Click Save and continue.
Troubleshooting
- "Read it back through the public URL" fails: the bucket policy from step 2 is missing or has the wrong bucket name, or your account does not allow public buckets yet (see "Before you start").
- The first check fails: check the region and both keys.
All messages: Fix a storage connection test error.