This module provisions and configures AWS Database Migration Service (DMS) resources for securely and reliably migrating databases in AWS.
The following resources will be created:
-
DMS Replication Subnet Group
-
DMS Replication Instance
-
DMS Endpoints
- Source
- Target
-
DMS Replication Task
-
DMS Event Subscriptions
module "dms" {
source = "./module/dms"
repl_subnet_group_subnet_ids = ["subnet-123456789", "subnet-987654321"]
repl_instance_engine_version = "3.5.4"
source_endpoint = var.source_endpoint
destination_endpoint = var.destination_endpoint
replication_task = {
replication_task_id = "example-cdc"
migration_type = "cdc"
replication_task_settings = "./task_settings.json"
table_mappings = "./table_mappings.json"
source_endpoint_key = "source"
target_endpoint_key = "destination"
}
event_subscriptions = var.event_subscriptions
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
Name | Version |
---|---|
aws | n/a |
Name | Source | Version |
---|---|---|
active_mq | ./module/active-mq | n/a |
Name | Type |
---|---|
aws_dms_replication_subnet_group.this | resource |
aws_dms_replication_instance.this | resource |
aws_dms_endpoint.source | resource |
aws_dms_endpoint.target | resource |
aws_dms_replication_task.this | resource |
aws_dms_event_subscription.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
repl_subnet_group_subnet_ids | Subnet IDs for the replication subnet group | list(string) | n/a | yes |
repl_instance_engine_version | Engine version of the replication instance | string | n/a | yes |
source_endpoint | Configuration for source endpoint | any | n/a | yes |
destination_endpoint | Configuration for destination endpoint | any | n/a | yes |
replication_task | Details of the replication task | map(any) | n/a | yes |
event_subscriptions | List of DMS event subscriptions | any | [] |
no |
Name | Description |
---|---|
replication_instance_arn | ARN of the DMS replication instance |
source_endpoint_arn | ARN of the DMS source endpoint |
target_endpoint_arn | ARN of the DMS target endpoint |
replication_task_arn | ARN of the DMS replication task |
Module managed by TO THE NEW Pvt. Ltd.
Apache 2 Licensed. See LICENSE for full details.