Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 693 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 693 Bytes

GeoIP Lambda Layer

This is the source project for an AWS Lambda Layer that contains MaxMind's free GeoLite2 geo IP databases and the C library for reading them and python3.6 build of the library against it.

Deploy

sls deploy

DB path when Lambda is executing

The GeoLite2 libraries can be found at the following paths in your running Lambda:

  • /opt/maxminddb/GeoLite2-City.mmdb
  • /opt/maxminddb/GeoLite2-Country.mmdb
  • /opt/maxminddb/GeoLite2-ASN.mmdb

How to use

Check out the example for how to use this layer with the Serverless Framework.