Community Documentation

Installation & Setup of the Amazon S3 Module

Last updated December 25, 2012. Created by gridbitlabs on December 14, 2011.
Edited by burt.lo, mototribe, 63reasons. Log in to edit this page.

Requirements:

Amazon S3 module
Libraries (7.x-2.x branch) module
Amazon Web Services SDK for PHP module

Installation & Setup:

  1. Download and install the Amazon S3, Libraries, and AWS SDK modules (For installation of awssdk, you will need to download the "Amazon SDK for PHP 1" library (main project page is here) and place it in sites/all/libraries/awssdk so Drupal can see sites/all/libraries/awssdk/sdk.class.php)
  2. Verify that the AWS SDK can be loaded by visiting your site's status report at admin/reports/status; if the status reports indicates that the library cannot be loaded properly even after you verify that it is properly installed, clear all caches to ensure that the Libraries module uses the most up-to-date information
  3. Configure AWS SDK (You will need your two Security Credentials: Access Key ID and Secret Access Key. These are located in your account settings at http://aws.amazon.com)
  4. Configure your bucket settings at /admin/config/media/amazon

You can then:

  • Visit admin/config/media/file-system and set the Default download method to S3
  • Add a field of type File or Image etc and set the Upload destination to Amazon S3 in the Field Settings tab.

Comments

Instructions not clear

Hi,

Step 3 isn't clear:

3: Configure AWS SDK (You will need your two Security Credentials: Access Key ID and Secret Access Key. These are located in your account settings at http://aws.amazon.com)

How exactly do you configure the credentials? On the admin/config/media/amazons3 page I only see these fields and nowhere to provide the key or secret key:

  • Default bucket name
  • Enable database caching
  • Enable CNAME
  • Torrents
  • Presigned URLs
  • Force save as

Many thank in advance,

A confused Alex

It's a seperate module

You do this in the AWS SDK settings:
/admin/config/media/awssdk

Quentin Campbell
Digital Solace (Pty) Ltd

AmazonS3 is good but could do with some fine tuning

Hi, really good module, just hit a few issues setting it up which would prevent me using this module.

- ideally this module should just be able to drop in without to much trouble and the files start using amazon s3. For download that is the case, but far as I can tell I then need to go through all my file/image fields on all my content types and edit them to use amazon s3 as upload method. This needs to be easy and quicker. Maybe an option on the amazons3 - "Use amazon s3 to store all files" checkbox. If they enable this then it automatically changes file system to download from s3 and updates upload settings for all image/file fields. This way it just drops in without too much effort.

- my client may wish to get rid of s3 and just use local file system. Could so with a way of disabling s3, downloading all files locally and updating the files table.

I can help out with either of these with a little guidance. Thanks again, love the way aws sdk is used.

Only local images are allowed.

This isn't a feature request

This isn't a feature request area, please refer to the modules issue queue to suggest and help with features and issues.

http://drupal.org/project/issues/amazons3

About this page

Drupal version
Drupal 7.x
Audience
Site administrators
Level
Intermediate
Keywords
amazon s3, amazon s3 install

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.