- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch2/materialized-view-s3 --path cncb-materialized-view-s3
- Navigate to the cncb-materialized-view-s3 directory with cd cncb-materialized-view-s3.
- Review the file named serverless.yml with the following content:
service: cncb-materialized-view-s3provider: name: aws runtime: nodejs8.10 iamRoleStatements: ...functions: listener: handler: handler.listener events: - stream: type: kinesis arn: ${cf:cncb-event-stream-${opt:stage}.streamArn} ... environment: BUCKET_NAME: Ref: Bucketresources: Resources: Bucket: Type: AWS::S3::Bucket Outputs: BucketName: Value: Ref: Bucket BucketDomainName: ...