AWS S3 setup for FileSet

As soon as you login into AWS console, go to the S3 service. 

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

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.

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

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

Go to Access keys row and create a new one.

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

Now let's jump to the Jexia admin panel and create a new 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. 

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!