Amazon CloudFront / S3
- Current Version: 1.1.2
- Last Updated 14 April 2019
- License: Commercial License
- Compatibility: OpenCart 2.x, 3.x
Description
Speed up image loading on your website using Amazon CloudFront. This integration allows you to easily upload your OpenCart image cache onto S3 and serve it through CloudFront.
Features
- Link OpenCart store to S3 and CloudFront
- Easily serve images through CloudFront
- Easily upload the Download files to S3
- One click build or clear image cache
- One click to export download files to S3
- Easily invalidate CloudFront URL by clearing image cache
Installation
OpenCart Cloud
- Purchase the extension from your administration panel.
- Proceed to
Extensions >> Extensions
and selectModules
. Then, installAmazon CloudFront / S3
. Configure extension accordingly. - Proceed to
Extensions >> Modifications
and click the blue refresh button. - Please view configuration details below.
Opencart 3
- Go to
Admin >> Extensions >> Installer
to upload the extension zip file. - Proceed to
Extensions >> Extensions
and selectModules
. Then, installAmazon CloudFront / S3
. Configure extension accordingly. - Proceed to
Extensions >> Modifications
and click the blue refresh button. - Please view configuration details below.
Opencart 2
- Unzip the files. Ensure that vQmod has been installed.
- Upload the files WITHIN the upload folder to your OpenCart installation folder with a FTP client. The folders should merge.
- In your admin panel, proceed to
Extensions >> Modules
. Then, installAmazon CloudFront / S3
. Configure extension accordingly. - Please view configuration details below.
Configurations
Opencart 2, 3 & Cloud
Upon installation of Amazon CloudFront / S3, you should will need to enter your Amazon S3 details to begin using the extension.
Setting Up S3 Bucket
- Proceed to your S3 Console at https://s3.console.aws.amazon.com/s3/home.
- Click the "Create Bucket" button.
-
Enter a bucket name (e.g. mywebsite-com) and click "Next" till step 3, Set Permissions.
-
Under "Manage Public Permissions", set "Grant public read access to this bucket" and click "Next" to review your settings.
-
Save and create the bucket.
- Copy the bucket name and put it into your OpenCart settings.
- Repeat steps above for the second bucket, and do not grant public read access for your download files bucket.
Setting Up CloudFront
- Proceed to your CloudFront Console at https://console.aws.amazon.com/cloudfront/home.
- Click the "Create Distribution" button.
- Click the "Get Started" option for the web.
- Click the field "Origin Domain Name" and select your newly created S3 bucket.
- Remaining fields have been automatically filled for you. Scroll to the bottom and click "Create Distribution".
-
Copy the CloudFront domain and the distribution ID and put it into your OpenCart settings. Do ensure the domain is entered correctly (https://example.cloudfront.com/) wit the trailing slash.
Setting Up IAM User
- Proceed to your IAM Console at https://console.aws.amazon.com/iam/home.
-
Select the "Groups" menu and click "Create New Group".
-
Give a group name, then proceed to the next step to attach policy.
- Attach "AmazonS3FullAccess" and "CloudFrontFullAccess".
-
Click "Next" then create group.
-
Select the "Users" menu and click "Add User".
- Give a user name and select the checkbox for "Programmatic access". Click next to Permissions.
-
Select "Add User to Group" and select the checkbox for the user group you've newly created.
-
Click "Next" to review user settings and click "Create User".
- Copy the "Access Key" and the "Secret Key" and put it into your OpenCart settings.
Change Log
Version 1.1.2 (14/04/2019)
- Fixed incorrect function being called in OC 3.0
Version 1.1.1 (15/05/2018)
- Fixed incorrect function being called in OC 2.0 release
Version 1.1.0 (19/02/2018)
- Added download files integration with S3
Version 1.0.0 (08/02/2018)
- Extension created