Provides a DTS Migration Instance resource.
For information about DTS Migration Instance and how to use it, see What is Synchronization Instance.
Basic Usage
data "alicloud_regions" "default" {
current = true
}
resource "alicloud_dts_migration_instance" "default" {
payment_type = "PayAsYouGo"
source_endpoint_engine_name = "MySQL"
source_endpoint_region = data.alicloud_regions.default.regions.0.id
destination_endpoint_engine_name = "MySQL"
destination_endpoint_region = data.alicloud_regions.default.regions.0.id
instance_class = "small"
sync_architecture = "oneway"
}
The following arguments are supported:
instance_class
- (Optional) The instance class. Valid values: large
, medium
, small
, xlarge
, xxlarge
. You can only upgrade the configuration, not downgrade the configuration. If you downgrade the instance, you need to submit a ticket.payment_type
- (Required, ForceNew) The payment type of the resource. Valid values: PayAsYouGo
.source_endpoint_region
- (Required, ForceNew) The region of source instance.source_endpoint_engine_name
- (Required, ForceNew) The type of source endpoint engine. Valid values: ADS
, DB2
, DRDS
, DataHub
, Greenplum
, MSSQL
, MySQL
, PolarDB
, PostgreSQL
, Redis
, Tablestore
, as400
, clickhouse
, kafka
, mongodb
, odps
, oracle
, polardb_o
, polardb_pg
, tidb
. For the correspondence between the supported source and target libraries, see Supported Databases, Synchronization Initialization Types and Synchronization Topologies, Supported Databases and Migration Types.destination_endpoint_region
- (Required, ForceNew) The region of destination instance. List of supported regions.destination_endpoint_engine_name
- (Required, ForceNew) The type of destination engine. Valid values: ADS
, DB2
, DRDS
, DataHub
, Greenplum
, MSSQL
, MySQL
, PolarDB
, PostgreSQL
, Redis
, Tablestore
, as400
, clickhouse
, kafka
, mongodb
, odps
, oracle
, polardb_o
, polardb_pg
, tidb
. For the correspondence between the supported source and target libraries, see Supported Databases, Synchronization Initialization Types and Synchronization Topologies, Supported Databases and Migration Types.sync_architecture
- (Optional, ForceNew) The sync architecture. Valid values: oneway
.compute_unit
- (Optional) ETL specifications. The unit is the computing unit ComputeUnit (CU), 1CU=1vCPU+4 GB memory. The value range is an integer greater than or equal to 2.database_count
- (Optional) The number of private customized RDS instances under PolarDB-X. The default value is 1. This parameter needs to be passed only when source_endpoint_engine_name
equals drds
.tags
- (Optional) A mapping of tags to assign to the resource.The following attributes are exported:
id
- The resource ID of Migration Instance. The value formats as <dts_instance_id>
.dts_instance_id
- The ID of the Migration Instance.status
- The status.DTS Migration Instance can be imported using the id, e.g.
$ terraform import alicloud_dts_migration_instance.example <id>