- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch2/data-lake-es --path cncb-data-lake-es
- Navigate to the cncb-data-lake-es directory with cd cncb-data-lake-es.
- Review the file named serverless.yml with the following content:
service: cncb-data-lake-esprovider: name: aws runtime: nodejs8.10plugins: - elasticsearchfunctions: transformer: handler: handler.transform timeout: 120resources: Resources: Domain: Type: AWS::Elasticsearch::Domain Properties: ... DeliveryStream: Type: AWS::KinesisFirehose::DeliveryStream Properties: DeliveryStreamType: KinesisStreamAsSource KinesisStreamSourceConfiguration: KinesisStreamARN: ${cf:cncb-event-stream-${opt:stage}.streamArn} ...