This project is inspired on Using Bref's LambdaRuntime to Asynchronously Run Swoole Coroutines as Functions on AWS.
Generate the vendors folder:
composer install
Create the zips with the lambda layers:
zip -r ./runtime.zip bootstrap bin cacert.pem
zip -r ./vendor.zip vendor
Then apply the terraform.