I’m trying to connect to a MySQL DB from a Function.
- TypeScript runtime
- MySQL DB hosted by PlanetScale
- TS client generated by Prisma
The client works fine locally, but can’t connect over TLS in the function.
My connection string is:
/etc/ssl/cert.pem locally and it’s no issue. The cert file doesn’t exist in the Lambda runtime.
- Where is the cert file?
- If that’s not the case, any other hints?