- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch10/dynamodb-global-table --path cncb-dynamodb-global-table
- Navigate to the cncb-dynamodb-global-table directory with cd cncb-dynamodb-global-table.
- Review the file named serverless.yml with the following content:
service: cncb-dynamodb-global-table...plugins: - serverless-dynamodb-autoscaling-plugin - serverless-dynamodb-global-table-plugincustom: autoscaling: - table: Table global: true read: ... write: ...resources: Resources: Table: Type: AWS::DynamoDB::Table Properties: TableName: ${opt:stage}-${self:service}-things ... StreamSpecification: StreamViewType: NEW_AND_OLD_IMAGES ...