code for article pfeilbr/php-lambda-layer-playground
learn stackery/php-lambda-layer for running PHP on lambda
Prerequisites
Key Files
- src/php/index.php
- src/php/php.ini - for enabled extensions
- template.yaml
- packaged.yaml - generated via sam
Session
see Makefile for details and make changes to variables as necessary.
# deploy stack
make deploy
# test api gateway endpoint URL
make test
# delete stack
make delete
Resources
- Introducing the new Serverless LAMP stack
- Introducing the serverless LAMP stack – part 2 relational databases
- aws-samples/php-examples-for-aws-lambda - github repo for article.
- AWS Lambda Custom Runtime for PHP: A Practical Example - older article, but covers low level details
- AWS SDK for PHP
Twitter • Reddit