In a handler of mine, I open a .mmdb
file for doing geo lookups. In my package, I use ./
notation to reference the file since the handler and file are in the same directory. Now that I want to deploy the function using serverless, I've included the file within the include
block in my serverless.yml
file. Based on the package size that I'm seeing, the file is being uploaded, however I'm getting the error
open ./GeoLite2-City.mmdb: no such file or directory
when running the lambda. What is the proper way to get the location of the file from within my lambda?