Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deploy by AWS Lamda: Unable to load config file .yaml: No such file or directory (os error 2) #1335

Open
manhcuongincusar1 opened this issue May 9, 2024 · 0 comments

Comments

@manhcuongincusar1
Copy link

Unable to load .yaml config file: "No such file or directory (os error 2)" when deployed by AWS Lambda

I have been trying to deploy using the Zip file strategy as described in the Maplibre documentation for running with Lambda. However, I'm encountering an issue where the Lambda function cannot find the .yaml configuration file, although it is present in my deployment package.

Here's how my root folder in Lambda looks, including the hello.handler.yaml file:
Screenshot of Lambda root folder

When I try to run the function via the Function URL, it returns an 'internal error'. Here are the logs:
Screenshot of Lambda logs

Additionally, I have attached the log file for more detailed information:
log-events-viewer-result.csv

Can someone help me resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant