-
Notifications
You must be signed in to change notification settings - Fork 792
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
AWS SAM CLI instructions recommends invalid BuildProperties #5525
Comments
Hey @ianwremmel 👋 sorry for the delay on this! Do you recall if you found a solution for this issue by any chance? |
|
Mostly, I just chose to ignore those instructions. As far as I can tell, the prisma schema file is not, in fact, necessary at runtime. It's been to long since I did most of this, so I don't remember the details, but this is my prisma config:
My assumption is that, by using |
@ianwremmel thanks for the clarity here! I'm going to open a pull request to remove this section. Totally possible this was required in the past and is no longer required. |
Sounds good, but it's probably worth investigating whether or not the prisms-client-js is relevant. I vaguely recall the I had to use that because there was no practical way to deliver the natively compiled prisma driver in conjunction with Lambda's esbuild. It's possible those files are necessary when using the native driver. |
Fixes #5525 Removed recommendations around bundling `.prisma` and `.so.node` files. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/prisma/docs/issues/5525?shareId=XXXX-XXXX-XXXX-XXXX).
The instructions at https://www.prisma.io/docs/guides/deployment/serverless/deploy-to-aws-lambda#loading-required-files say to add the following to each function's Metadata.BuildProperties:
However, in so doing, sam build fails with
and
The text was updated successfully, but these errors were encountered: