How can I use my own Amazon AWS S3 bucket storage with Zight?

Roger Pineda
Roger Pineda
  • Updated

For customers on our Zight for Business and Team plans, you have the ability to use your own Custom AWS buckets to store your team's Zight Drops.

To set this up you need an S3 Bucket and a set of AWS keys with read/write permission for it. Below are instructions on how to configure this for Zight.

List of contents:

  1. Video of all the Steps
  2. Create your S3 bucket
  3. Setup Cors
  4. Setup the IAM policy
  5. Setup the IAM group
  6. Setup the IAM user and creating kets
  7. Pairing keys in your admin -> Storage resources


The whole process in a video :

In progress...

Create your S3 bucket

Create an S3 Bucket in your AWS account as described here.

When creating the bucket, under the Object Ownership section select ACLs Enabled and turn off Block All Public Access as shown below:

Setting up CORS

  1. Once the bucket is created, go to the bucket’s Permissions Section and click Edit on the CORS configuration.This is the minimum CORS policy you need:


"AllowedHeaders": ["*"], 
"AllowedMethods": ["GET", "HEAD", "POST", "PUT"], 
"AllowedOrigins": ["*"], 
"ExposeHeaders": ["etag"] 

]


If you are also using a custom share domain, you may need to include an additional AllowedOrigin line in the json. it will end up looking something like this:



"AllowedHeaders": ["*"], 
"AllowedMethods": ["GET", "HEAD", "POST", "PUT"], 
"AllowedOrigins": ["*", "share.customdomain.com"],
"ExposeHeaders": ["etag"] 

]

Setting up the Policy in the AIM system

With the bucket created we need to generat e API keys that can access the bucket. We will do this with AWS IAM.

  1. The first step is to create the policy. Navigate to the Policy section of the IAM site and click Create Policy:
    Policies IAM Global 2023-12-16 at 1.54.49 PM

  2. The second step will be pasting our JSON(you can find it below the next image)

    Be sure to replace zight-demo-bucket with your bucket name

  3. On the next screen give the policy a name and optional description then click Create Policy
  4. Json from the image in step 2:


    "Version": "2012-10-17", 
    "Statement": [ 

    "Sid": "VisualEditor0", 
    "Effect": "Allow", 
    "Action": [ 
    "s3:PutObject", 
    "s3:GetObject", 
    "s3:ListBucket", 
    "s3:DeleteObject", 
    "s3:PutObjectAcl",
    "s3:ListBucketVersions"
    ],
    "Resource": [ 
    "arn:aws:s3:::zight-demo-bucket/*",
    "arn:aws:s3:::zight-demo-bucket"



    }

     

Setting up the Group that will use the above policy in the AIM system

  1. With the policy created, go to the "users group" section and click Create Group


  2. Next, set the group name, attach the policy and click "Create Group"


Setting up the User we will assign to the group above and creating the key

  1. Now we create a user and add them to this group. Go to the Users section and select Add User

  2. Now give the user a name and choose the programmatic access option and then click the Next: Permissions button


  3. Select your group from the list and click next


  4. Skip past the next screen by hitting Next,Make sure everything looks right and then click Create User


  5. Navigate the user you create and click "Create access key"
  6. Select "third party service" and click "next". 


  7. Set a description tag and click "Create Access Key"


  8. Retrieve your Access key and Secret

 

Now with your bucket and keys created, we need to enter them in your Zight account. 

  1. Go to Settings
  2. Storage Resources
  3. Select Amazon S3 storage
  4. Enter in your details
  5. Click Add Bucket(if you get an error, please be sure the previous steps where correctly followed)
  6. Hit Submit for S3.



 

If you need further assistance or have additional questions, we’d be happy to help! Please contact our support team here.

Was this article helpful?

0 out of 1 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.