sm@sh has asked for the wisdom of the Perl Monks concerning the following question:

I have a simple requirement to read a file from an S3 bucket.
We'll be using access key + secret IAM authentication.

I can find these modules on CPAN:

The first of these seems to be most common, and well-maintained. The weight of dependencies isn't a major problem given we already have many of them in our app.

However, they are all quite bloated for my requirements, and from the AWS docs, it is simply a case of generating an auth token to access the file.

Can anyone recommend any other modules, or has written their own access code?

Replies are listed 'Best First'.
Re: Choosing an AWS S3 CPAN module
by salva (Canon) on Sep 29, 2014 at 09:08 UTC
      Yes - that would be also be one to consider.
      I ended up doing a spike using Net::Amazon::S3, although it needed a minor fix to work with Perl 5.8.8 (pull request issued).
      The API isn't the worst, but it all seems like a lot of work to simply access a (secured) file on S3.
      I also found AWS::Signature4 which I just could not get to work (all requests rejected for one reason or another). It would be helpful if the AWS signing code was factored out of Net::Amazon::S3.