Skip to content

kobanyan/serverless-plugin-dynamodb-pitr

Repository files navigation

serverless-plugin-dynamodb-pitr

codecov semantic-release

A Serverless plugin to easily enable point in time recovery of DynamoDB Table

Installation

npm install --save-dev serverless-plugin-dynamodb-pitr
# or
yarn add --dev serverless-plugin-dynamodb-pitr

Usage

plugins:
  - serverless-plugin-dynamodb-pitr

custom:
  dynamodbPitr:
    ignore: # Optionally - select tables to disable point in time recovery
      - TableB
      - TableD

resources:
  Resources:
    TableA: # enabled point in time recovery without PointInTimeRecoverySpecification
      Type: AWS::DynamoDB::Table
    TableB: # disabled
      Type: AWS::DynamoDB::Table
    TableC: # enabled point in time recovery without PointInTimeRecoverySpecification
      Type: AWS::DynamoDB::Table
    TableD: # disabled
      Type: AWS::DynamoDB::Table
    TableE: # enabled point in time recovery without PointInTimeRecoverySpecification
      Type: AWS::DynamoDB::Table

See example.

License

MIT © kobanyan