S3 is a reliable, scalable cloud storage service provided by Amazons AWS platform. Using AWS, for some, may be a cost effective and faster way to store data outside of your usual hosting environment.
The following guide shows how to set up S3, alongside your Invision Community setup. Note that this guide is correct at the time of writing, and screens may vary from time to time on the AWS console. If you have not set one up already, please first of all ensure you have created an amazon AWS account. You can do this at the following location. (If asked, please ensure you select to use the new management console)
https://portal.aws.amazon.com/gp/aws/developer/registration/index.html
When you first log into AWS, you will need to add an S3 storage service to your account. Using the search box provided, type in S3, and select the S3 service
Once you have selected the S3 service, you will be able to create a new S3 'Bucket'. A bucket is simply an area where you will store your data, within the S3 service. Click on create bucket to get started with its creation.
On the first screen you will be asked for a bucket name, and a region. Choose the region which is closest to the majority of your users, and give your bucket a name. The name can be anything you wish. In this example I have used 'myinvisionbucket'
Choosing Name and Region
Once you have added the name and chosen your name, select "ACLs enabled", as this is required for the invision applications to function correctly.
Enabling ACLs
As your items are Accessible on the web, you need to enable public access. Deselect the blocking options, as shown here, and select the checkbox to confirm
Ensuring Public Access
Finally, select "Create bucket" to create the new S3 bucket you will be using on your site
Before we can go ahead an set up the storage method in our admin CP, we need to create a set of credentials to use with the S3 bucket. In order to do this, you need to visit the Identity and Access Management (IAM) settings page of your AWS account. You can find a direct link to this here
https://console.aws.amazon.com/iam/
Once here, we need to first create a group which has full access to your S3 location. Select Access Management -> Groups from the menu on the left. Then Click on "Create New Group"
Give it a group name, and then click next step. You will then be given a list of items to select from. Search for S3, click the checkbox at the side of "AmazonS3FullAccess" and click next.
You can now click on create group, which will take you back to the first page. On the left, you now need to click on users, and click "Add User"
Give the user a name, select "Acccess Key ID - Programmatic Access" then click "Next: Permissions"
On the next screen you will see the name of the group you previously created.
Click the checkbox for this and Click "Next: Tags", then "Next: Review" and finally "Create User"
Here you can see your Access ID, and Secret Access Key (click show). Copy these out somewhere so that you have these in the next steps.
In order to set up the new storage method, visit the following location within your Admin CP
System -> Overview -> Files -> Storage Settings -> Configurations
Once in this location, select to create a new storage method
Once you have done this, select "Amazon S3" from the storage method options at the top of the page. We then need to set up an access key and add the information into your Admin CP as we go. The items in the image below are numbered corresponding to the descriptions below
-
The first item you need to add is a bucket name. This is the Bucket Name you used in the first step of this guide. In our example case, we used myinvisionbucket.
-
The endpoint will be different depending on what you have set up as your region in previous steps. The link below this item will take you to the AWS help guides where you can find the end point name. First of all find this in the list. I have used Europe (Ireland), and therefore I need eu-west-1 for part of my endpoint URL
The 'Endpoint' you will enter is the following, where {yourRegion} is replaced with the region name you got above.
s3.{yourRegion}.amazonaws.com
So in our scenario, we will be using s3.eu-west-1.amazonaws.com
-
The 3rd and final part of setting up the storage method, is to enter the access key and secret. These are the values you copied from creating your user in the previous stage of this guide.
Now that you have created a new storage method connected to your S3 bucket, you can choose what you wish to store in amazon S3. Go to the following location to do this
System -> Overview -> Files -> Storage Settings
From here, use the dropdown on any of the items to change the storage method to your amazon S3 bucket. If there are items which exist already, a background task will be created to move these to the new location.
Report Guide