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/ch2/data-lake-s3 --path cncb-data-lake-s3
  1. Navigate to the cncb-data-lake-s3 directory with cd cncb-data-lake-s3.
  2. Review the file named serverless.yml with the following content:
service: cncb-data-lake-s3provider:  name: aws  runtime: nodejs8.10functions:  transformer:    handler: handler.transform    timeout: 120resources:  Resources:    Bucket:      Type: AWS::S3::Bucket      DeletionPolicy: Retain    DeliveryStream:      Type: AWS::KinesisFirehose::DeliveryStream      Properties:        DeliveryStreamType: KinesisStreamAsSource              KinesisStreamSourceConfiguration:           KinesisStreamARN: ${cf:cncb-event-stream-${opt:stage}.streamArn} ...

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.