leandroperini/dynamo-replicator

A simple copy paste for AWS DynamoDB Table Items for Laravel/Lumen
278 1
Install
composer require leandroperini/dynamo-replicator
Latest Version:1.0.3
PHP:>=7.0
License:GPL-3.0-or-later
Last Updated:Mar 12, 2019
Links: GitHub  ·  Packagist
Maintainer: leandroperini

dynamoReplicator

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.

Installation

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.

Lumen

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);

Laravel

In Laravel find the providers key in your config/app.php and register the Dynamo Replicator Service Provider.

    'providers' => array(
        // ...
        LeandroPerini\DynamoReplicatorServiceProvider::class,
    )

Basic Usage

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

Options

  • --ok -> Origin AWS Key | Required.
  • --os -> Origin AWS Secret | Required.
  • --oe -> Origin Endpoint | Optional. Defaults to AWS
  • --or -> Origin AWS Region | Optional. Default: us-east-1
  • --dk -> Destination AWS Key | Required.
  • --ds -> Destination AWS Secret | Required.
  • --de -> Destination Endpoint | Optional. Defaults to AWS
  • --dr -> Destination AWS Region | Optional. Default: us-east-1

Related Packages

expstudio/lumen-stapler

Easy file upload management for the Lumen Framework.

3,927 0
shiftonelabs/laravel-sqs-fifo-queue

Adds a Laravel queue driver for Amazon SQS FIFO queues.

6,984,654 154
dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk...

5,958,049 307
codesleeve/laravel-stapler

Easy file upload management for the Laravel Framework.

415,387 556
dusterio/laravel-plain-sqs

Custom SQS connector for Laravel that supports custom format JSON

2,824,310 134