Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dschep/geoip-lambda-layer

An example Lambda Layer containing MaxMind's free GeoIP DBs
https://github.com/dschep/geoip-lambda-layer

Last synced: about 1 month ago
JSON representation

An example Lambda Layer containing MaxMind's free GeoIP DBs

Awesome Lists containing this project

README

        

# GeoIP Lambda Layer
This is the source project for an AWS Lambda Layer that contains [MaxMind](https://maxmind.com)'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](https://github.com/serverless/geoip-lambda-layer/tree/master/example)
for how to use this layer with the [Serverless Framework](https://serverless.com).