项目作者: jainishshah17
项目描述 :
IoT Serverless Webhook
高级语言: JavaScript
项目地址: git://github.com/jainishshah17/serverless-iot.git
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:
curl -X POST \
https://api.bintray.com/webhooks/$SUB/$REPO/$PACKAGE \
-u '$USERNAME:$API_KEY' \
-H 'content-type: application/json' \
-d '{
"url": "$SERVERLESS_URL",
"method": "post"
}'