Skip to content

oofman/php-lambda-demo

Repository files navigation

PHP Custom runtime on Lambda

#Instructions

  • 1 - Follow the commands listed in ec2-commands.txt:
    This will show you have to generate all the files on the EC2 or for a more detailed explanation
  • 2 - Follow the links below for a more detailed step-by-step guide:

Quick solution:

To get the example working:
1 - Upload the runtime.zip file as layer 1 to Lambda
2 - Upload the vendors.zip file as layer 2 to Lambda
3 - Upload the hello.zip and goodbye.zip as individual functions to Lambda
(remember to rename your functions to only hello instead of hello.handler)

Example based of these guides

https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/
https://aws.amazon.com/blogs/compute/scripting-languages-for-aws-lambda-running-php-ruby-and-go/
https://akrabat.com/serverless-php-on-aws-lamda/

About

Running PHP as custom runtime on lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages