Amazon storage can be configured for all - or just some - Imagen storage profiles
👨🏫Prerequisite knowledge: To get the most from this article it will help to be familiar with the Amazon management interface, as well as the Imagen Admin interface, Storage Profiles and Storage Locations
Contents:
- Create a storage bucket in Amazon S3
- Create IAM user in Amazon AWS
- Create access and secret keys for this IAM User
- Configure Imagen to use Amazon Storage
- Configure storage profiles
Overview
This tutorial will show you how to connect Imagen to an Amazon S3 storage bucket. You may have an existing S3 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 Amazon S3
AWS tutorial
Create IAM user in Amazon AWS
AWS tutorial
User IAM Policy
The following JSON IAM policy is for use in the tutorial above
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:ListBucketMultipartUploads",
"s3:CreateBucket",
"s3:ListBucket",
"s3:PutBucketCORS",
"s3:ListMultipartUploadParts",
"s3:PutObject",
"s3:GetObject",
"s3:GetBucketCORS",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::martynsbucket",
"arn:aws:s3:::martynsbucket/*"
]
}
]
}
Create access and secret keys for this IAM User
AWS tutorial
Configure Imagen to use Amazon Storage
Configure storage profiles