Deploy Prisma to AWS Lambda with Node.js 18 on ARM64

Marco Lüthy
1 min readMar 22, 2023

On November 18, 2022, AWS announced support for Node.js v18 in AWS Lambda. If you want to run Prisma v4 on AWS Lambda using the Node.js v18 managed runtime and ARM64 architecture, and you already have a working setup in Node.js 14 or 16, there’s a crucial change to make.

In your schema.prisma file, update the binaryTargets to use the linux-arm64-openssl-1.1.x Prisma query engine binary. This adjustment will enable Prisma to run smoothly on the new Node.js v18 runtime with ARM64 architecture in AWS Lambda.

--

--

Marco Lüthy

Hi there! I’m Marco. I write mostly about software development, sometimes about books I’ve read, and occasionally something else to keep things interesting.