Skip to content

GeoIp Service. AWS Lambda function. Serverless framework. Python

License

Notifications You must be signed in to change notification settings

andr81/geoip-python-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless python GeoIp

AWS Lambda and MaxMind GeoLite to find a location of IP addresses.

Install

  • git clone [email protected]:andr81/geoip-python-aws.git
  • cd serverless-geoip
  • sls plugin install -n serverless-python-requirements
  • sls deploy

Database

Download the GeoLite2 database and put to the src folder
http://dev.maxmind.com/geoip/geoip2/geolite2/

Usage

curl https://yoururl.execute-api.us-east-1.amazonaws.com/prod/geoip?ip=7.7.7.7
{"continentCode": "NA", "countryCode": "US"}

About

GeoIp Service. AWS Lambda function. Serverless framework. Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages