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

NAME

AWS::Lambda::Bootstrap - It's the bootrap script for AWS Lambda Custom Runtime.

SYNOPSIS

Save the following script as bootstrap, and then zip it with your perl script. Now, you can start using Perl in AWS Lambda!

    #!/opt/bin/perl
    use strict;
    use warnings;
    use utf8;
    use AWS::Lambda::Bootstrap;

    my $bootstrap = AWS::Lambda::Bootstrap->new;
    $bootstrap->handle_events;

Prebuild Perl Runtime Layer includes the bootstrap script. So, if you use the Layer, no need to include the bootstrap script into your zip. See AWS::Lambda for more details.

DESCRIPTION

The format of the handler is following.

    sub handle {
        my ($payload, $context) = @_;
        # handle the event here.
        my $result = {};
        return $result;
    }

$context is an instance of AWS::Lambda::Context.

LICENSE

The MIT License (MIT)

Copyright (C) Ichinose Shogo.

AUTHOR

Ichinose Shogo <shogo82148@gmail.com>