Skip to content

Instantly share code, notes, and snippets.

@ilgooz
Last active December 19, 2018 18:14
Show Gist options
  • Save ilgooz/faf69e18212a214c45bb3d163d13aaa2 to your computer and use it in GitHub Desktop.
Save ilgooz/faf69e18212a214c45bb3d163d13aaa2 to your computer and use it in GitHub Desktop.
name: location
description: Find Geo Location of an IP Address
configuration:
env:
# We're using MaxMind as a geo location database provider but it can be
# changed to another one by overwriting env variables in the deployment time.
# Note that service is responsible to respect to these env variables.
- PROVIDER=maxmind
tasks:
locateIP:
inputs:
ip:
type: String
outputs:
success:
data:
location:
city:
type: String
country:
type: String
error:
data:
message:
type: String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment