NAME

AWS::Lambda::PSGI - It translates enevt of Lambda Proxy Integrations in API Gateway and Application Load Balancer into PSGI.

SYNOPSIS

Add the following script into your Lambda code archive.

    use utf8;
    use warnings;
    use strict;
    use AWS::Lambda::PSGI;

    my $app = require "$ENV{'LAMBDA_TASK_ROOT'}/app.psgi";
    my $func = AWS::Lambda::PSGI->wrap($app);

    sub handle {
        my $payload = shift;
        return $func->($payload);
    }

    1;

And then, Set up Lambda Proxy Integrations in API Gateway or Lambda Functions as ALB Targets

LICENSE

The MIT License (MIT)

Copyright (C) Ichinose Shogo.

AUTHOR

Ichinose Shogo <shogo82148@gmail.com>