This article will show how to connect to an Amazon S3 file store in the cloud.
You must have the Amazon S3 File System extension installed.
To install this extension navigate to Extensions->Extensions and click on the Available tab.
Click the Download icon for Amazon S3 File System, then click Accept when prompted.
Restart the server once the download completes using the power icon in the grey bar at the top right of the screen.
Setting up access credentials
From your Amazon AWS Console, click on the Identity & Access Management link, or go directly to the URL here.
First, we need to create a user account that we will use to connect to an S3 bucket.
Click on Users on the left side, then click Create New Users.
Type in the new username, ensure the option for Generate an access key for each user is ticked. Click Create at the bottom right to create the user.
You will then see the Access Key ID and Secret Access Key, which needs to be saved. You can click the button to Download Credentials.
Configuring the File Resource
Navigate to File Resources, right click the Root folder and select Create Virtual Folder.
This creates a new folder called untitled folder. Right click this new folder and select Rename.
Rename the folder something appropriate such as Amazon S3.
Right click the Amazon S3 folder and select Mount Files.
Give the mount a name, we'll type in Latest Hypersocket ISOs.
Click the Scheme dropdown and select Amazon S3.
Type in the name of the S3 bucket where the files live, in this case hypersocket-vpn.
Then type in the path to your files, which here is /1.2.0. Note: if you want to show all files in the bucket just use a single forward slash (/).
Click the Credentials tab.
Copy/Paste in the Access Key and Secret key that was generated in the first step.
Click the Roles tab and add which Roles will be able to access this resource. In this case, we'll just choose Everyone.
Click Create to finish creating the resource.
Accessing the files
As a user, you should now be able to access the files in the S3 bucket - let's test this from the Web UI.
As a normal user, click on My Resources. We can see the Amazon S3 virtual folder that we created above.
Click on the Amazon S3 folder, we can now see the files that are in that Amazon cloud folder.