php-examples-for-aws-lambda
php-examples-for-aws-lambda copied to clipboard
Demo serverless applications, examples code snippets and resources for PHP
I'm getting this. ``` { "errorMessage": "RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75 Error: Runtime exited with error: exit status 255", "errorType": "Runtime.ExitError" } ``` ``` Function Logs START RequestId: 7161f214-824d-4b8f-82cd-01bad53a5e75 Version: $LATEST Warning: require_once(/var/task/src/handler.php):...
This makes reference to the `0.7-PHP-Lambda-functions-with-Docker-container-images` folder. ``` axel@ryzen:~/projects/foobar/poc-foobar-global-services$ sam --version SAM CLI, version 1.50.0 axel@foobar:~/projects/foobar/poc-foobar-global-services$ sam deploy -g Configuring SAM deploy ====================== Looking for config file [samconfig.toml] : Not...
Response { "errorMessage": "RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Error: Runtime exited with error: exit status 255", "errorType": "Runtime.ExitError" } Function Logs START RequestId: ae39bce3-185d-4011-8edd-251bdb4a6f52 Version: $LATEST Warning: require(/opt/vendor/autoload.php): failed to open stream: No...
In tutorial 0.7-PHP-Lambda-functions-with-Docker-container-images the created container does not have access to the network. I did a simple try with gethostbyaddr: $reverse = gethostbyaddr('51.255.200.41'); return APIResponse("Hello, ". $data['queryStringParameters']['name'] . " -...
/opt/bin/php: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
There are lots of applications that are developed without any framework, Such applications contain business logic and view part on same page, which means PHP, HTML, JS, and CSS on...
I have a Dockerfile: ```dockerfile FROM public.ecr.aws/lambda/python:3.10 RUN yum install -y libffi libffi-devel postgresql-devel postgresql-libs gcc ``` And sls configuration: ```yaml pythonRequirements: dockerFile: ./Dockerfile dockerizePip: non-linux ``` This gives the...
**Is your feature request related to a problem? Please describe.** A sample code for Slim micro-framework example. **Describe the solution you'd like** Something like bref/slim-bridge **Describe alternatives you've considered** There...