- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch10/latency-based-routing --path cncb-latency-based-routing
- Navigate to the cncb-latency-based-routing directory with cd cncb-latency-based-routing.
- Review the file named serverless.yml with the following content:
service: cncb-latency-based-routingplugins: - serverless-multi-regional-pluginprovider: ... endpointType: REGIONALcustom: dns: hostedZoneId: ZXXXXXXXXXXXXX domainName: ${self:service}.example.com regionalDomainName: ${opt:stage}-${self:custom.dns.domainName} us-east-1: acmCertificateArn: arn:aws:acm:us-east-1:xxxxxxxxxxxx:certificate/... us-west-2: acmCertificateArn: arn:aws:acm:us-west-2:xxxxxxxxxxxx:certificate/... ...