How to store WordPress Media Library on Amazon S3

What is Amazon S3

Amazon Simple Storage Service (Amazon S3) is a web-based service designed for online backup and archiving of data and hosting static websites.
The S3 allows you to upload, store and download practically any file or object up to 5GB. There is no limit to the number of items you can store in your bucket.
You can keep your data private or publicly accessible.
The data is stored on redundant servers in multiple data centers.

Configuration diagram

Creating a S3 Bucket

Log in to your AWS Console, select S3 and create a Bucket

Create an Access Key

Go to Security Credentials of your AWS account. Create and download the Access Key.

WordPress Setup

Go to your WordPress website Plugin directory and enable the Nephila clavata plugin.

Update the plugin settings with the Access key details and Bucket settings.

WordPress Media Library synced with Amazon S3 bucket

Slide