Categories
Fixing Stuff Samuel

Serving Media/Image Files from Amazon S3

If you have been struggling to server your wordpress media/image files from Amazon S3 hopefully this basic explanation will help you out.  I apologize for the simplicity of this example, this post is mainly meant for my own use later so I have a record of how to set this up:

 

Download and manually install via FTP the following plugins

amazon web services plugin
amazon s3 cloudfront plugin

steps:
-install both plugins (upload manually, then activate in wp admin)
-create an IAM user on EC2, give user permissions of “AmazonS3FullAccess” (download the id Key and secret key, then add to wp-config.php)
-create an S3 bucket either through the AWS console, or select option in s3 plugin to create a new bucket
-check the first 3 options on the s3 plugin to
           -copy files to s3 as they are uploaded
           -point file urls to s3 once it has been copied to s3
           -remove uploaded file from local filesystem once uploaded to s3

 

Once completed any new media/images uploaded through the WP backend section will automatically be saved in your specified amazon S3 bucket

One reply on “Serving Media/Image Files from Amazon S3”

Comments are closed.