Amazon S3 Library for REST in Perl

Sample Code & Libraries>Amazon S3 Library for REST in Perl
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

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

Details

Submitted By: EricW@AWS
AWS Products Used: Amazon S3
Language(s): Perl
License: New BSD
Created On: March 13, 2006 8:20 PM GMT
Last Updated: September 21, 2008 9:16 PM GMT
Download

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.

Comments

It worked for me too, but ...
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.
cviniciusm on January 25, 2009 2:13 AM GMT
No major problems encountered
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.
Julian Cowley on December 13, 2008 8:35 AM GMT
sample does not work out of the box
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
Jay Liew on June 19, 2008 4:52 AM GMT
Where's the Documentation
This code would be great if there was some kind of documentation on how to use this code.
Robbert van Andel on February 6, 2008 4:42 AM GMT
Download?
Is there a missing download link or am I blind?
Larry Raab on June 16, 2007 4:55 PM GMT
First Look
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.
J. Wieland on August 23, 2006 6:57 AM GMT
We are temporarily not accepting new comments.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.