Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

@01coder/dynamodb-copy

An AWS utility for copying dynamodb tables accross AWS accounts.

awsdynamodb
Published9 Oct 2023
Direct dependencies2
Transitive dependenciesNot calculated

README

Current package documentation

AWS DynamoDB Copy

An AWS utility for copying dynamodb tables accross AWS accounts. This package has been developed using the AWS SDK v3 from logic based on Mahmoud Marie's 'copy-dynamodb-table' package (https://github.com/enGMzizo/copy-dynamodb-table).

Usage

Import the plugin

const { DynamoDBCopy } = require('@01coder/dynamodb-copy');
const dynamodbCopyInstance = new DynamoDBCopy({
    tableName: source.tableName, // Table name to copy from
    source: {
        region: "eu-west-2", 
        credentials: fromSSO({}) // Provide a method from @aws-sdk/credential-providers
    },
    destination: {
        region: "eu-west-2", 
        credentials: fromSSO({})
    }
})

Methods

dynamodbCopyInstance.copySchema();

dynamodbCopyInstance.copyItems();

// Copy items and schema
dynamodbCopyInstance.copyItems({
    createIfNotExist: true // Create table if it doesn't exist
}).then((result) => {
    if(result.status == true) {

    }
})

Please note: This package is yet to be fully reviewed and tested...

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@aws-sdk/client-dynamodb
Environment
{
  "local_name": "@aws-sdk/client-dynamodb",
  "alias": false,
  "peer_metadata": null
}
^3.427.0runtime
readline
Environment
{
  "local_name": "readline",
  "alias": false,
  "peer_metadata": null
}
^1.3.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-AukRXUi0qKEmuUtMp+rlJ2FcUMsL2rsGwH0U0oq/1pe+t+1nuMLfkR8kjebYl/NXvmLSYJKFIg6uAOjfbnW9iw==",
  "shasum": "355e622f989c2c9106c1efe59a1e4b9782a6347b",
  "tarball": "https://registry.npmjs.org/@01coder/dynamodb-copy/-/dynamodb-copy-1.0.0.tgz",
  "fileCount": 3,
  "unpackedSize": 7952,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIC9SL+gaRJ4QtzR1tXjKIKfGg6nY1oY+i5l9GWuwD9aJAiEAgkSzMpO5NbVmkCaqmQPtAKrm6+nG1X9uLj31wNZ7tO8="
    }
  ]
}

Repository

PENDING
01codelt/aws-dynamodb-copy

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:56 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:89343dbb6c5a30e3c8775eea0d4e52030f07236148bafbdccb2d5d9e3d07f786

Other collected versions

View all collected versions →