Resources



Sample Code and Libraries

Amazon S3 Library for REST in Perl

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

A library in Perl for working with the Amazon S3 REST interface.

Submitted By: EricW@AWS  
AWS Products Used: Amazon S3
Language(s): Perl
License: New BSD

About This Sample

  • A library in Perl for working with the Amazon S3 REST interface.
  • Part of a collection of interface libraries, each in a different language.
  • See the README file in the download for more information about the sample.

What's New

  • 2007-11-05: Updates to support EU.
  • 2007-05-18: Updates to support signed HTTP requests to virtual hosted buckets.
  • 2006-10-02: Updates for server access logging.
  • 2006-06-16: Updates to use the list delimiter.

Prerequisites

  • You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.
  • This sample was built using Perl 5.6.0.

Running the Sample

  • See the README file in the attached download for information on running the sample.

Discussion
Click to start a discussion on this document Create a New Discussion
No discussion has been created for this document.

Reviews
Create Review Write a Review

First Look, Aug 22, 2006 11:57 PM
Reviewer: J. Wieland
Make sure you have Crypt::SSLeay, it will still compile and run with out it but gives this vague runtime error msg. File does not exist: 500 Can't locate object method "new" via package "LWP::Protocol::https::Socket" at S3/ListBucketResponse.pm line 28 --- What I would really like to see is a cpan module giving a good API over S3 rest functions. From what I've seen from Net::Amazon::S3 I feel it is really substandard compared to other cpan projects.

Download?, Jun 16, 2007 9:55 AM
Reviewer: Larry Raab
Is there a missing download link or am I blind?

Where's the Documentation, Feb 5, 2008 8:42 PM
Reviewer: Robbert van Andel
This code would be great if there was some kind of documentation on how to use this code.

sample does not work out of the box, Jun 18, 2008 9:52 PM
Reviewer: Jay Liew
s3-test.pl outputs an error message of "# Looks like you failed 26 tests of 272." The first thing it failed was: not ok 247 - create bucket # Failed test 'create bucket' # at ./s3-test.pl line 226. # got: '403' # expected: '200' Not sure what I am doing wrong, but the sample code does not work out of the box. I have the latest version of perl, and all the prerequisite modules (per the README): Digest::HMAC_SHA1 HTTP::Date XML::Simple Crypt::SSLeay URI::Escape MIME::Base64 LWP::UserAgent HTTP::Request

No major problems encountered, Dec 13, 2008 12:35 AM
Reviewer: Julian Cowley
All of the tests in s3-test.pl script worked for me (did you modify the script with your AWS credentials?). I installed this module for use with the s3bak script, which doesn't seem to be available anywhere anymore. The only problem I've encountered with the library is that it doesn't deal with very large files very well. However, this is mentioned in the README as a limitation because it must read the entire file into memory.

It worked for me too, but ..., Jan 24, 2009 6:13 PM
Reviewer: cviniciusm
Hello, It worked for me too, but I had to do su -c 'perl s3-test.pl'. It not worked as a non-root user. Cheers, Cassius.
Welcome, Guest Help
Login Login