dynamodb-replication
Adaptavist/dynamodb-replication/module
Terraform module that manages DynamoDB data migration and ongoing replication Based on https://aws.amazon.com/blogs/database/cross-account-replication-with-amazon-dynamodb/ https://github.com/aws-samples/cross-account-amazon-dynamodb-replication !DynamoDB replication Pre-requisites Enable dynamoDB streams on the source dynamoDB table Create an IAM role in the target account that has full access to the target dynamoDB table. This role will be assumed by the glue job during the initial migration and the lambda during the ongoing replication. Post-migration All resources should be deleted once the dynamoDB replication is no longer required. Perform terraform destroy on this module (or just dereference it from your stack and let terraform tidy the resources up) Disable the source table dynamoD
| Name | Type | Description | Default |
|---|---|---|---|
| target_role_arn | string | Target IAM Role name to be assumed by Lambda function and a Glue job | required |
| stage | string | Deployment stage | required |
| initial_load_subnet | string | Subnet for the initial load ECS task | required |
| initial_load_sg | string | Security group for the initial load ECS task | required |
| target_dynamodb_table_name | string | Target DynamoDB Table name | required |
| target_account | string | Target AWS Account Number | required |
| source_table_stream_arn | string | Source Dynamo DB table stream ARN | required |
| source_table_name | string | Source Dynamo DB table name | required |
| tags | map(string) | A map of tags to assign to the resource. | required |
| namespace | string | Namespace this resources belong to | required |
| stage_type | string | Deployment stage type | required |
| target_region | string | The region for the target DynamoDB table | required |
| enabled | bool | Indicates if the replication is enabled | false |