enGMzizo / copy-dynamodb-table

Copy Dynamodb table to another in the same or different zone , It is 100% safe. Speed depends on your destination table user-defined write provisioned throughput
130 stars 39 forks source link

Filter out records to be copied to destination table #21

Closed Yashko closed 4 years ago

Yashko commented 5 years ago

This PR will add optional param filter to the options object. If this param will contain something, main copy function will not copy all of the records inside in source table, but only records which fits into filter rule.

Example:

dynamodbCopyTable({
  config: awsConfig,
  source: {
    tableName: 'one',
  },
  destination: {
    tableName: 'two',
  },
  filter: {
    sample: 'text',
    temporary: false
  }
}, callback)
enGMzizo commented 4 years ago

I will close this pull request because I will implement this filter / mapping function in the future version.

enGMzizo commented 4 years ago

LSI Provisioned Throughput is not existed