NAME
AWS::Lambda::AL2 - AWS Lambda Custom Runtimes based on Amazon Linux 2
SYNOPSIS
You can get the layer ARN in your script by using get_layer_info.
use AWS::Lambda::AL2;
my $info = AWS::Lambda::get_layer_info(
"@@LATEST_PERL@@", # Perl Version
"us-east-1", # Region
"x86_64", # Architecture ("x86_64" or "arm64", optional, the default is "x86_64")
);
say $info->{runtime_arn}; # @@LATEST_RUNTIME_ARN@@
say $info->{runtime_version}; # @@LATEST_RUNTIME_VERSION@@
say $info->{paws_arn} # @@LATEST_PAWS_ARN@@
say $info->{paws_version} # @@LATEST_PAWS_VERSION@@,
Or, you can use following one-liner.
perl -MAWS::Lambda -e 'AWS::Lambda::print_runtime_arn("@@LATEST_PERL@@", "us-east-1")'
perl -MAWS::Lambda -e 'AWS::Lambda::print_paws_arn("@@LATEST_PERL@@", "us-east-1")'
The list of all available layer ARN is here:
EOS
for my $version (@$versions_al2) { print $fh "=item Perl $version\n\n=over\n\n"; for my $arch(@$archs) { print $fh "=item $arch architecture\n\n=over\n\n"; for my $region (@{$regions->{$arch}}) { next unless $layers_al2->{$version}{$region}{$arch}{runtime_arn}; print $fh "=item $layers_al2-{$version}{$region}{$arch}{runtime_arn}>\n\n"; } print $fh "=back\n\n"; } print $fh "=back\n\n"; }
printfh(<<'EOS'); =back
And Paws layers:
EOS
for my $version (@$versions_al2) { print $fh "=item Perl $version\n\n=over\n\n"; for my $arch(@$archs) { print $fh "=item $arch architecture\n\n=over\n\n"; for my $region (@{$regions->{$arch}}) { next unless $layers_al2->{$version}{$region}{$arch}{paws_arn}; print $fh "=item $layers_al2-{$version}{$region}{$arch}{paws_arn}>\n\n"; } print $fh "=back\n\n"; } print $fh "=back\n\n"; }
printfh(<<'EOS'); =back
Use Pre-built Zip Archives
URLs for Zip archives are:
https://shogo82148-lambda-perl-runtime-$REGION.s3.amazonaws.com/perl-$VERSION-runtime-al2-$ARCHITECTURE.zip
And Paws:
https://shogo82148-lambda-perl-runtime-$REGION.s3.amazonaws.com/perl-$VERSION-paws-al2-$ARCHITECTURE.zip
Pre-installed modules
The following modules are pre-installed for convenience.
- AWS::Lambda
- AWS::XRay
- JSON
- Cpanel::JSON::XS
- JSON::MaybeXS
- YAML
- YAML::Tiny
- YAML::XS
- Net::SSLeay
- IO::Socket::SSL
- Mozilla::CA
Paws is optional. See the "Paws SUPPORT" section.
LEGACY CUSTOM RUNTIME ON AMAZON LINUX 2
Previously, we provided the layers that named without CPU architectures. These layers are compatible with x86_64 and only for backward compatibility. We recommend to specify the CPU architecture. These layers are NO LONGER MAINTAINED and WILL NOT RECEIVE ANY UPDATES.
Pre-built Legacy Public Lambda Layers for Amazon Linux 2
The list of all available layer ARN is:
EOS
for my $version (@$versions_al2) { print $fh "=item Perl $version\n\n=over\n\n"; for my $region (@{$regions->{x86_64}}) { next unless $layers_al2_x86_64->{$version}{$region}{runtime_arn}; print $fh "=item $layers_al2_x86_64-{$version}{$region}{runtime_arn}>\n\n"; } print $fh "=back\n\n"; }
printfh(<<'EOS'); =back
And Paws layers:
EOS
for my $version (@$versions_al2) { print $fh "=item Perl $version\n\n=over\n\n"; for my $region (@{$regions->{x86_64}}) { next unless $layers_al2_x86_64->{$version}{$region}{paws_arn}; print $fh "=item $layers_al2_x86_64-{$version}{$region}{paws_arn}>\n\n"; } print $fh "=back\n\n"; }
printfh(<<'EOS'); =back
Pre-built Legacy Zip Archives for Amazon Linux 2 x86_64
URLs of zip archives are here:
https://shogo82148-lambda-perl-runtime-$REGION.s3.amazonaws.com/perl-$VERSION-runtime-al2.zip
And Paws:
https://shogo82148-lambda-perl-runtime-$REGION.s3.amazonaws.com/perl-$VERSION-paws-al2.zip
SEE ALSO
LICENSE
The MIT License (MIT)
Copyright (C) ICHINOSE Shogo
AUTHOR
ICHINOSE Shogo
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 296:
You forgot a '=back' before '=head2'
You forgot a '=back' before '=head2'
- Around line 383:
You forgot a '=back' before '=head2'
You forgot a '=back' before '=head2'