To use the Kinesis Stream in Serverless Framework.
Make sure that you use Serverless v1.
- Run
serverless install --url https://github.com/katsuhiko/sls-kinesis
to install the service in your current working directory - Next up cd into the service with
cd sls-kinesis
- Run
npm install
- Deploy with
serverless deploy
Simply perform requests against the exposed endpoints:
curl -X POST https://XXXX.execute-api.ap-northeast-1.amazonaws.com/dev/todos --data '{ "content" : "Learn Serverless" }'
curl -X PATCH https://XXXX.execute-api.ap-northeast-1.amazonaws.com/dev/todos/<id> --data '{ "content" : "Understand Serverless" }'
curl -X DELETE https://XXXX.execute-api.ap-northeast-1.amazonaws.com/dev/todos/<id>