Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Need to print bucket and filename which is uploaded on S3 storage

by 1nickt (Abbot)
on Aug 21, 2019 at 14:30 UTC ( #11104816=note: print w/replies, xml ) Need Help??


in reply to Need to print bucket and filename which is uploaded on S3 storage

Hi, why are you using a module that has not been updated since 2009 to access a commercial cloud service?

How I store stuffs in S3 these days:

my $s3 = Net::Amazon::S3->new({ aws_access_key_id => $conf->{access_key}, aws_secret_access_key => $conf->{secret_key}, }); my $bucket = $s3->bucket( $conf->{bucket} ); my $key = $conf->{path}{ $op_env } . '/some_name'; $bucket->add_key( $key, $data ) or $die($s3->err . ": " . $s3->errstr) +;

Hope this helps!


The way forward always starts with a minimal test.
  • Comment on Re: Need to print bucket and filename which is uploaded on S3 storage
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104816]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2019-10-21 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?