-
Notifications
You must be signed in to change notification settings - Fork 5
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
official aws lambda layer for @duckdb/node-api #98
Comments
There is not. The lambda layer for the old Node client isn't "official", either; it's provided by a member of the community. I'm not very familiar with lambda layers so I don't know what's involved. I don't understand enough about the lambda environment to know why you got the error above, but my guess is there's something different about the Node version or configuration. I'd welcome any concrete suggestions or PRs to make this work. I have a fair amount of other items on my list right now, so I'm not likely to have time to look into this anytime soon. |
figured it out actually. It was due to lambda function running on a different chip to my local machine and the .node binding dependency not being installed when the function was deployed on aws. I wouldn't want to use a random lambda layer as abit of a security risk but these are the steps i did to get it working (for others wanting to fix the same issue):
Now duckdb will be executable inside a lambda function without using a custom docker image. |
Nice! I can confirm that those three packages ( |
Probably worth documenting this and adding it to the README. I'll keep this issue open to track that. |
good idea! I think this would allow alot more people who are just using front end frameworks like aws amplify to use duckdb in their lambda functions :) |
Hey, is there an official aws lambda layer for @duckdb/node-api or we must include as part of our own deployment pipeline?
Currently getting this error on a clean lambda function. I guess most people would also get this:
Many thanks!
The text was updated successfully, but these errors were encountered: