{"_id":"@01coder/dynamodb-copy","name":"@01coder/dynamodb-copy","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@01coder/dynamodb-copy","version":"1.0.0","description":"An AWS utility for copying dynamodb tables accross AWS accounts.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/01CodeLT/aws-dynamodb-copy.git"},"keywords":["aws","dynamodb"],"author":{"name":"Luke Tinnion"},"license":"ISC","bugs":{"url":"https://github.com/01CodeLT/aws-dynamodb-copy/issues"},"homepage":"https://github.com/01CodeLT/aws-dynamodb-copy#readme","dependencies":{"@aws-sdk/client-dynamodb":"^3.427.0","readline":"^1.3.0"},"gitHead":"a31984ffe897f6c09d854a88b44686bdb36a75c5","_id":"@01coder/dynamodb-copy@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"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="}]},"_npmUser":{"name":"01coder","email":"luke.tinnion@icloud.com"},"directories":{},"maintainers":[{"name":"01coder","email":"luke.tinnion@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dynamodb-copy_1.0.0_1696868255681_0.683486965769275"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-09T16:17:35.573Z","1.0.0":"2023-10-09T16:17:35.818Z","modified":"2023-10-09T16:17:36.079Z"},"maintainers":[{"name":"01coder","email":"luke.tinnion@icloud.com"}],"description":"An AWS utility for copying dynamodb tables accross AWS accounts.","homepage":"https://github.com/01CodeLT/aws-dynamodb-copy#readme","keywords":["aws","dynamodb"],"repository":{"type":"git","url":"git+https://github.com/01CodeLT/aws-dynamodb-copy.git"},"author":{"name":"Luke Tinnion"},"bugs":{"url":"https://github.com/01CodeLT/aws-dynamodb-copy/issues"},"license":"ISC","readme":"# AWS DynamoDB Copy\r\nAn 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).\r\n\r\n### Usage\r\n\r\nImport the plugin\r\n```\r\nconst { DynamoDBCopy } = require('@01coder/dynamodb-copy');\r\nconst dynamodbCopyInstance = new DynamoDBCopy({\r\n    tableName: source.tableName, // Table name to copy from\r\n    source: {\r\n        region: \"eu-west-2\", \r\n        credentials: fromSSO({}) // Provide a method from @aws-sdk/credential-providers\r\n    },\r\n    destination: {\r\n        region: \"eu-west-2\", \r\n        credentials: fromSSO({})\r\n    }\r\n})\r\n```\r\n\r\nMethods\r\n```\r\ndynamodbCopyInstance.copySchema();\r\n\r\ndynamodbCopyInstance.copyItems();\r\n\r\n// Copy items and schema\r\ndynamodbCopyInstance.copyItems({\r\n    createIfNotExist: true // Create table if it doesn't exist\r\n}).then((result) => {\r\n    if(result.status == true) {\r\n\r\n    }\r\n})\r\n```\r\n\r\n*Please note: This package is yet to be fully reviewed and tested...*\r\n","readmeFilename":"README.md"}