1. Knowledge Base
  2. Store
  3. Storage Configuration and Troubleshooting

Configuring Amazon S3 Storage Tutorial

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:

  1. Create a storage bucket in Amazon S3
  2. Create IAM user in Amazon AWS
  3. Create access and secret keys for this IAM User
  4. Configure Imagen to use Amazon Storage
  5. 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.


  1. Create a storage bucket in Amazon S3
    AWS tutorial


  2. 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/*"
            ]
            
        }
        ]
    }


  3. Create access and secret keys for this IAM User

    AWS tutorial


  4. Configure Imagen to use Amazon Storage

  5. Configure storage profiles