Online forums are filled with queries like how to convert my website to WordPress or how to build new websites. Users posting such questions must know about the method to integrate WordPress with Amazon S3 storage service. This kind of integration will help them in storing objects like their website’s media files in an S3 bucket. This will result in the consumption of fewer resources on their website’s hosting server and saving money. It will also improve their interface’s loading speed as there will be lesser requests for the host server to handle. Connecting a WordPress website with the storage service is easy and can be done with a suitable plugin. The following tutorial explains the procedure in a step by step manner:

1. Install The WP Offload S3 Lite Plugin

Plugins are one of the most convenient features of the open source web building platform. They make it infinitely easy for users to add new functionality to their interfaces. In order to connect a WordPress website with the S3 service, we will also use a plugin. We have chosen the WP Offload S3 Lite plugin which is a 4-star rated product. Log in to your website’s installation and go to “Plugins > Add new”. Search the WordPress repository for the tool and download its files. Activate the plugin and move to the next step.

2. Create An Amazon Web Services Account

You will now need to access your Amazon Web Services account. In case, you do not have one, you will need to visit the website and sign up for free. Log in to your account and open the AWS Console. Go to the IAM Users page where you will have to create a new user. Enter a username of your choice in the specified field. In the “Select AWS access type” section, tick the box against the “Programmatic access” option. Press the blue colour “Next: Permissions” tab at the bottom of the screen to move forward.

3. Set Up User Permissions

In this step, we will define the permissions needed for managing the files in the S3 bucket. On the next screen which you have been directed to after completing the previous step, you will see three options in the “Set permissions for perftesting” section. Locate the box with the caption, “Attach existing policies directly” among the options. Select it and hit the “Create policy” tab located in the bottom left-hand corner. This will open a new tab. Do not close the current screen and go to the new page.

4. Create A Policy

In this step of our manual to integrate WordPress with Amazon S3, we will now generate a policy. Scroll down in the “Create Policy” screen until you reach the option titled “Create your own policy”. Click the “Select” button against it.

You will now be asked to provide a name and description for the policy. Enter the details in the specified fields. The code shown in the image given below needs to e copied and pasted into the “Policy Document” section.

This will define a policy which lets users create buckets beside uploading and downloading files. They can also list files and buckets but are allowed to delete only files. Locate the “Create Policy” button at the bottom of the screen and hit it.

5. Connect The Policy To The User

Go back to the tab which we had left open in Step 3. The policy created in the preceding step will need to be connected to the user. Press the “Refresh” tab and the new policy will become visible right on top of the list. Check the box against the policy and hit the “Next: Review” button.

6. Complete The Process To Create The User

We will now finish the process of creating a user. You will be directed to a “Review” screen where you can check your user details. Make sure that the name of the policy matches the one you created just now. Click on the “Create user” tab.

You will be greeted with a success message. The access key ID and secret access key will also be displayed. These codes will be needed for integrating your website. Copy the keys and store them in a secure location.

7. Integrate Account With WordPress

Go back to the dashboard of your WordPress account. The “AWS” option will now be visible in the menu. You must define the keys by adding the following code in the “wp-config.php” file. Do not forget to insert your keys in the code lines.

Those who do not want to use this technical method can choose to add the keys by using the specified fields as shown in the below image.

8. Create A Bucket

Storage areas in the S3 are called buckets. You will have to create one to save your objects. Go to the dashboard of your interface and select “S3 and CloudFront” under the “AWS” option. Select a name for the bucket along with a region and press the “Create New Bucket” button. This complete the process of linking the WordPress interface with the S3 service.


This easy method to integrate WordPress with Amazon S3 service will help website owners in improving the performance of their interfaces. At the same time, they will be able to save money by reducing the consumption of server resources.