ChenHanZhang / terraform-alicloud-dts

Terraform Module for creating Data Transmission Service (DTS) on Alibaba Cloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Module for creating Data Transmission Service (DTS) on Alibaba Cloud.

terraform-alicloud-dts

English | 简体中文

This Module is used to automatically build and data transmission services based on DTS, including data synchronization instances, data synchronization jobs, and monitoring rules.

These types of resources are supported:

Usage

module "default" {
  source = "terraform-alicloud-modules/dts/alicloud"

  create_sync_instance               = "true"
  auto_pay                           = "true"
  auto_start                         = "true"
  payment_type                       = "PayAsYouGo"
  source_endpoint_region             = "cn-hangzhou"
  destination_endpoint_region        = "cn-hangzhou"
  instance_class                     = "small"
  create_sync_job                    = true
  synchronization_bidirectional      = true
  dts_job_name                       = "tf-testAccCase"
  data_initialization                = "true"
  data_synchronization               = "true"
  structure_initialization           = "true"
  source_endpoint_instance_id        = "rm-bp1gxxxxxxxxjv"
  source_endpoint_database_name      = "source_database"
  source_endpoint_user_name          = "username"
  source_endpoint_password           = "password"
  destination_endpoint_instance_id   = "rm-bp1gxxxxxxxxka"
  destination_endpoint_database_name = "destination_database"
  destination_endpoint_user_name     = "username"
  destination_endpoint_password      = "password"
  db_list                            = "{\"test_database\":{\"name\":\"test_database\",\"all\":true,\"state\":\"normal\"}}"
  dts_job_status                     = "Synchronizing"
  create_monitor_rule                = false
}

Examples

Notes

  • This module using AccessKey and SecretKey are from profile and shared_credentials_file. If you have not set them yet, please install aliyun-cli and configure it.

Requirements

Name Version
terraform > = 0.13
alicloud > = 1.138.0

Providers

Name Version
alicloud > = 1.138.0

Submit Issues

If you have any problems when using this module, please opening a provider issue and let us know.

Note: There does not recommend opening an issue on this repo.

Authors

Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com).

License

MIT Licensed. See LICENSE for full details.

Reference

About

Terraform Module for creating Data Transmission Service (DTS) on Alibaba Cloud.

License:MIT License


Languages

Language:HCL 100.0%