A Serverless Plugin for the Serverless Framework to enable/disable PITR (Point-in-time recovery) for one or more DynamoDB tables on deploy.
This plugin uses DynamoDB API to update the PointInTimeRecoverySpecification of the specified tables right after deployment, allowing to enable or disable point-in-time recovery of the tables.
In your service root, run:
npm install --save-dev serverless-dynamodb-pitrAdd the plugin to serverless.yml:
plugins:
- serverless-dynamodb-pitrYou can add items under the custom.pitr in serverless.yml. Required attributes are tableName and enabled:
custom:
pitr:
- tableName: someDynamoDBTableName
enabled: true
- tableName: someOtherTableName
enabled: false- Add tests
- 2018/05/02 - v0.1.0 - Initial version
Copyright (c) 2018 Nordcloud, licensed for users and contributors under MIT license. https://github.com/SC5/serverless-dynamodb-pitr/blob/master/LICENSE