Configure Imagen to use Wasabi storage for all or some Imagen storage profiles
👨🏫Prerequisite knowledge: To get the most from this article it will help to be familiar with the Wasabi management interface, as well as the Imagen Admin interface, Storage Profiles and Storage Locations
Contents:
- Create a storage bucket in Wasabi
- Create a policy in Wasabi
- Create access and secret keys for this bucket
- Configure Imagen to use Wasabi Storage
- Configure storage profiles
Overview
This tutorial will show you how to connect Imagen to a Wasabi storage bucket. You may have an existing Wasabi account that you would like to connect to, and if so you could skip ahead to step 4.
Access to your bucket will be granted through the use of an IAM user, where minimum permissions are required for Imagen to store and manage files. You can choose a storage location for each storage profile, so you could choose cheaper storage for infrequently used files.
- Create a storage bucket in Wasabi
Wasabi tutorial
Create a policy in Wasabi
Wasabi tutorial
Policy
The following JSON policy is for use in the tutorial above
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListBucketMultipartUploads",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:CreateBucket",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:PutBucketCORS",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:ListMultipartUploadParts",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:GetBucketCORS",
"Resource": "arn:aws:s3:::imagen/*"
},
{
"Effect": "Allow",
"Action": "s3:DeleteObject",
"Resource": "arn:aws:s3:::imagen/*"
}
]
}-
Add a new user to a new group in Wasabi
Wasabi tutorial
- Configure Imagen to use Wasabi Storage
Configure Imagen storage profiles