Lambda Container Error on /var/task/vendor/autoload.php #824
Replies: 2 comments 5 replies
-
Sorry the blog post is incomplete, I assumed something that may not be obvious to everyone 😅 You need to install bref in your project via:
first. That will create a Let me know if that works better. |
Beta Was this translation helpful? Give feedback.
-
Hi, composer.json
serverless.yml
cloudwatch log : Fatal error: Uncaught Error: Failed opening required '/var/task/vendor/autoload.php' (include_path='.:/opt/bref/lib/php') in /opt/bootstrap:37 |
Beta Was this translation helpful? Give feedback.
-
Description:
I am trying to deploy my php web application in a serverless architecture using AWS Lambda. I am trying to utilize the new feature for containerized support on Lambda as opposed to the previous method of deploying Bref as a Lambda Layer.
I followed the instructions in this Blog post: https://mnapoli.fr/aws-lambda-php-docker-containers/, but when I deployed my container on Lambda I am getting the following error on invocation.
Running
docker run
on my local laptop is also throwing the same error.Here is my repository so you can see I am including everything inside this php directory in my docker container.
https://github.com/wheelers-websites/CloudGuruChallenge_1020/tree/master/php
How to reproduce:
Beta Was this translation helpful? Give feedback.
All reactions