I'm currently working on a project that will be hosted on AWS Lambda, and I need to connect to a Neo4j database to fetch some information. I've been trying to install the Neo4j package in Lambda by creating a virtual environment, zipping it, and adding it as a layer, but it doesn't seem to be working.
Could someone please guide me through the steps, providing a detailed, step-by-step process to properly install the Neo4j package in AWS Lambda? I specifically need to initialize the session successfully and fetch the necessary data from the Neo4j database.
Any help or advice would be greatly appreciated! Thank you in advance.
Please be aware that “serverless” and “stateless” are different. Neo4j does run as a Docker container (serverless), and when it does, it needs a volume to preserve the state.
My question concerns a similar setup, but using AWS Lambda (a single node) instead of a Kubernetes cluster.