The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Signer::AWSv4::S3 - Implements the AWS v4 signature algorithm

SYNOPSIS

  use Signer::AWSv4::S3;
  $s3_sig = Signer::AWSv4::S3->new(
    access_key => 'AKIAIOSFODNN7EXAMPLE',
    secret_key => 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
    method => 'GET',
    key => 'test.txt',
    bucket => 'examplebucket',
    region => 'us-east-1',
    expires => 86400,
  );
  say $s3_sig->signed_url;

DESCRIPTION

Generates S3 Presigned URLs.

Request Attributes

This module adds two required attributes in the constructor for obtaining an S3 Presigned URL:

key

The name of the object in S3. This should not start with a slash (/)

bucket

The name of the S3 bucket

Signature Attributes

Apart from those in Signer::AWSv4, a convenience attribute is added:

signed_url

The presigned URL to download the object

BUGS and SOURCE

The source code is located here: https://github.com/pplu/AWSv4Signer

Please report bugs to: https://github.com/pplu/AWSv4Signer/issues

COPYRIGHT and LICENSE

Copyright (c) 2018 by CAPSiDE

This code is distributed under the Apache 2 License. The full text of the license can be found in the LICENSE file included with this module.