- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch10/regional-health-check --path cncb-regional-health-check
- Navigate to the cncb-regional-health-check directory with cd cncb-regional-health-check.
- Review the file named serverless.yml with the following content:
service: cncb-regional-health-checkprovider: name: aws runtime: nodejs8.10 endpointType: REGIONAL iamRoleStatements: ...functions: check: handler: handler.check events: - http: path: check method: get environment: UNHEALTHY: false TABLE_NAME: Ref: Tableresources: Resources: Table: Type: AWS::DynamoDB::Table ...
- Review the file named handler.js with the following content: ...