项目作者: jainishshah17

项目描述 :
IoT Serverless Webhook
高级语言: JavaScript
项目地址: git://github.com/jainishshah17/serverless-iot.git
创建时间: 2018-03-06T00:20:37Z
项目社区:https://github.com/jainishshah17/serverless-iot

开源协议:

下载


IoT Serverless

Serverless function to receive webhook from Bintray and trigger POST request

Steps to deploy Serverless function to AWS

  • Install serverless: npm install serverless -g
  • Login to Serverless: serverless login
  • Deploy Serverless function to AWS: serverless deploy

Add Webhook on Bintray to call Serverless:

  1. curl -X POST \
  2. https://api.bintray.com/webhooks/$SUB/$REPO/$PACKAGE \
  3. -u '$USERNAME:$API_KEY' \
  4. -H 'content-type: application/json' \
  5. -d '{
  6. "url": "$SERVERLESS_URL",
  7. "method": "post"
  8. }'