Package Data | |
---|---|
Maintainer Username: | leandroperini |
Maintainer Contact: | perini105@gmail.com (Leandro Perini) |
Package Create Date: | 2018-11-09 |
Package Last Update: | 2019-03-12 |
Home Page: | |
Language: | PHP |
License: | GPL-3.0-or-later |
Last Refreshed: | 2024-12-15 15:14:43 |
Package Statistics | |
---|---|
Total Downloads: | 277 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A simple copy paste for AWS DynamoDB Table Items for Laravel/Lumen It helps when you need to copy a dump of DynamoDB table content and import to another table, location or account.
The Dynamo Replicator can be installed via Composer by requiring the
leandroperini/dynamo-replicator
package in your project's composer.json
.
{
"require": {
"leandroperini/dynamo-replicator": "^1.0.3"
}
}
Then run a composer update
php composer.phar update
Or just execute the command bellow:
composer require leandroperini/dynamo-replicator
To use the Dynamo Replicator, you must register the provider when bootstrapping your application.
In Lumen find the Register Service Providers
in your bootstrap/app.php
and register the Dynamo Replicator Service Provider.
$app->register(LeandroPerini\DynamoReplicator\DynamoReplicatorServiceProvider::class);
In Laravel find the providers
key in your config/app.php
and register the Dynamo Replicator Service Provider.
'providers' => array(
// ...
LeandroPerini\DynamoReplicatorServiceProvider::class,
)
php artisan dynamo:import origin-table-name destination-table-name
--ok=origin_aws_key --os=origin_aws_secret
--dk=destiation_aws_key --ds=destiation_aws_secret
--oe=origin_endpoint
--de=destination_endpoint
--or=origin-region
--dr=destination-region