- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch5/jwt-filter --path cncb-jwt-filter
- Navigate to the cncb-jwt-filter directory with cd cncb-jwt-filter.
- Review the file named serverless.yml with the following content:
service: cncb-jwt-filterprovider: name: aws # cfnRole: arn:aws:iam::<account-number>:role/${opt:stage}-cfnRole ...functions: save: handler: handler.save events: - http: ... authorizer: arn: ${cf:cncb-cognito-pool-${opt:stage}.userPoolArn} get: handler: handler.get events: - http: path: things/{sub}/{id} ... authorizer: arn: ${cf:cncb-cognito-pool-${opt:stage}.userPoolArn}resources: Resources: Table: ... KeySchema: ...