How to do it...

  1. Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch3/esg-outbound --path cncb-esg-outbound
  1. Navigate to the cncb-esg-outbound directory with cd cncb-esg-outbound.
  2. Review the file named serverless.yml with the following content:
service: cncb-esg-outboundprovider:  name: aws  runtime: nodejs8.10  environment:    REPO: enter-your-github-project    OWNER: enter-your-github-id    TOKEN: enter-your-github-tokenfunctions:  listener:    handler: handler.listener    events:      - stream:          type: kinesis          arn: ${cf:cncb-event-stream-${opt:stage}.streamArn}          ...
  1. Update the REPO, OWNER, and TOKEN environment variables in the serverless.yml file.
  2. Review the file named ...

Get JavaScript Cloud Native Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.