Run php on AWS lambda with terraform for IaC
This repo is setup to with separate branches for different use cases of running php on lambda.
main
shows a basic event handler lambda triggered by new files put into s3php-view
shows a basic setup for rendering php views and a router for dispatching to the respective view handlerphp-api
shows a symfony api project with api gateway{proxy+}
route handling requests and symfony handling routing
- terraform cli
- php >=8.0
- composer
- Install php dependencies with
composer install
- Initialize terraform with
cd ./infrastructure && terraform init