WP Media Folder Addon: Amazon S3 Integration

1. Create an IAM User


The Amazon S3 integration with WP Media Folder is included in the Add-on. You need to install this add-on (plugin) in addition to WP Media Folder. The addon includes integration for Google Drive, Google Photo, Dropbox and OneDrive too.

First, you need login to Amazon Console or sign up if you don't have a AWS S3 account.

Once you have logged into the console, you will need to create a new IAM user. Then go to the IAM Users page in the AWS Console, click the Add user button.

Next enter a name for the user and select the checkbox for Programmatic access as Access type, then click the Next: Permissions button.

 

create-user

 

To allow the new user to manage buckets and objects in the S3 service, you need to grant specific permissions. Click on the “Attach existing policies directly” button, and then enter “S3” in the filter policies input box. Select the “AmazonS3FullAccess” policy, then click the Next: Tags button.

 

user-permission

 

You can skip this step or add your key if needed. Then click on the Next: Review button.

 

add-tag

 

If everything looks good, click the Create user button.

 

review-user

 

A security screen will be displayed with security credentials for the user, which consists of an Access Key ID and a Secret Access Key. Amazon will not show these again so please download them as a .csv and also copy them somewhere safe. If you lose them, you can always create a new set of keys from the console but you cannot retrieve the secret key again later.

 

aws-s3-key

 

 

2. Login to Amazon S3 from WP Media Folder

Return to the WordPress dashboard and click on the menu Settings > WP Media Folder > Cloud > Amazon S3 tab. Paste the following into the form fields:

  • Access Key ID
  • Secret Access Key

 

input-key

 

After that, save the settings and the connection should be a success. Please go to the next step to discover AWS S3 features.

 

3. How does it work? What can I do with Amazon S3?

How does it work?

Once you've connected WP Media Folder with Amazon S3 and enable Copy to Amazon S3 option, all your new media uploaded will be sent to Amazon S3.

 

copy-to-aws

 

Remember to create and select bucket where all your data will be stored.

 

create-bucket

 

And if you want to sync your uploaded media before using Amazon S3 integration, click on Synchronize with Amazon S3 button. Then it will send all your existing media library to your S3 bucket.

Note: When you do this action the URL of your media will be replaced by the Amazon S3 URL. Please see the example below.
From https://joomunited.com/wp-content/uploads/2019/02/image.jpg to >> https://s3-us-west-1.amazonaws.com/joom-united/WP+Media+Folder+-+eStore/wp-content/uploads/2019/02/image.jpg

 

In order to offload the media on your site, you should enable Remove after Amazon S3 upload option, your media library will be completely stored on Amazon S3 instead of your server.

 

offload-media-amazon-s3

 

By enabling Amazon attachment label option, the information on each media will be displayed when you hover on the aws3 label on the top left.

 

amazon-label

 

When you want to change your media location or remove the plugin, click on Retrieve Amazon S3 Media button, then all your media will be copied from Amazon to you media library. All former link added in your content will remain in place (no broken link).

 

retrieve-aws

 

Note: You can only sync files from S3 to Media library if they are uploaded through our plugin.

 

Advanced settings and actions

 

Cloudfront is integrated, first you need to enable this option and then add your custom domain (CNAME).

 

cloudfront-integrate

 

You can select a bucket to import folders and files from S3 server to your Media library. Or copy all files from a bucket to another one.

 

copy-buckets