- 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
- Navigate to the cncb-data-lake-s3 directory with cd cncb-data-lake-s3.
- 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} ...