How to login to Realm from an Aws Lambda

cloud

#1

So when Realm .Sync.user.login runs it creates the realm-oject-server directory on the local machine. The problem is an AWS lambda is write protected for every folder but /tmp/ .So each time it tries to login from the lambda the whole thing crashes on the mkdir. IS thera way around this, like changing where the fiels and directories are to be written too?


#2

Did you ever find an an answer for this? I am struggling with the same issue in Azure Functions. I’ve been researching this all day which led me here: https://github.com/realm/realm-object-store/issues/263#issuecomment-263949456

That issue transferred responsibility to the realm-js team tracked here: https://github.com/realm/realm-js/issues/720

After reviewing the commits in the PR, I looked through the current source but still can’t find any support for specifying the location of the realm-object-server directory.