Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dschep/geoip-lambda-layer
- Owner: dschep
- Created: 2018-11-16T14:27:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T08:03:10.000Z (about 4 years ago)
- Last Synced: 2024-08-02T06:13:47.926Z (3 months ago)
- Language: Dockerfile
- Size: 9.77 KB
- Stars: 44
- Watchers: 8
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-layers - `dschep/geoip-lambda-layer`
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).