Skip to content

Instantly share code, notes, and snippets.

@weilandia
Last active November 28, 2017 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weilandia/182612041f70c19c359b5af75ee9a5e5 to your computer and use it in GitHub Desktop.
Save weilandia/182612041f70c19c359b5af75ee9a5e5 to your computer and use it in GitHub Desktop.
service: sendgrid-webhook-to-mixpanel-lambda
provider:
name: aws
runtime: nodejs6.10
stage: ${opt:stage}
region: us-east-1
profile: your-profile
environment:
MIXPANEL_TOKEN: ${file(./serverless.env.yml):${self:provider.stage}.MIXPANEL_TOKEN}
functions:
trackEvents:
handler: index.handler
events:
- http:
path: some_endpoint
method: post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment