Catalog npm
PACKAGE EXPLORERView in registry

@01coder/dynamodb-copy

npm

An AWS utility for copying dynamodb tables accross AWS accounts.

awsdynamodb
Versions collected1
Direct dependencies2From release 1.0.0
Last observed20 Oct, 21:56 UTC

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.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest9 Oct 20232

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:c193d9f6a57ae4098815f5450905c8cb02b73e8af909fff8f64216537c7cece6