AWS S3 setup for FileSet

If you haven't created an account, get started here.

As soon as you log in to AWS console, go to the S3 service. 

setting up amazon s3 bucket

Here you need to click the Create bucket button and enter the name for your bucket. 

create bucket on amazon s3

In the next step you can choose to configure options if you wish or leave the default values.

Then on the Set permissions page, select all points related to ACL and deselect the others.

set permission on amazon s3 bucket

Make your final review and then create the bucket. As soon as it's done, open the bucket and move it to Permissions -> Bucket Policy. Here you will be able to put json to configure access policy for your bucket. You can find a template for this on our GitHub page

!!!Please, change this row from template with your bucket name:  "Resource": "arn:aws:s3:::bucket-name/*"

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicAccess",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::bucket-name/*"
        } 
    ]
}
amazon s3 bucket policy

Now we need to create access key for your bucket. Click on your account, then select My Security Credentials.

security credentials amazon s3 bucket

Go to Access keys row and create a new one.

create access key amazon s3 bucket

A pop-up with credentials will appear. Make sure you save these credentials as you will need to use them later for Jexia configuration.

create access key amazon s3 bucket

Now let's jump to the Jexia admin panel and create a new Fileset.

link amazon s3 bucket to jexia fileset

In this step you need to enter the Access Key ID and Secret Access Key that you received from AWS, and your bucket name. 

enter access key aws s3 bucket to jexia fileset

During creation we will try to load an empty file to your bucket and then try to read it back. If all goes well the new Fileset will be created. In case of any error with access, the Fileset will be created with an error sign. If that happens you will need to double-check all steps described in this document.

That's all, happy coding!

If you haven't created an account, get started here. If you already have an account, try it out and log in to your project here.