- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch10/round-robin-replication --path cncb-round-robin-replication
- Navigate to the cncb-round-robin-replication directory with cd cncb-round-robin-replication.
- Review the file named serverless.yml with the following content:
service: cncb-round-robin-replication...functions: listener: ... trigger: ... search: ... replicator: handler: replicator.trigger events: - sns: arn: Ref: BucketTopic topicName: ${self:service}-${opt:stage}-trigger environment: REPLICATION_BUCKET_NAME: ${self:custom.regions.${opt:region}.replicationBucketName}custom: regions: us-east-1: replicationBucketName: cncb-round-robin-replication-${opt:stage}-bucket-WWWWWWWWWWWWW ...