alicloud_cassandra_data_center

Provides a Cassandra dataCenter resource supports replica set dataCenters only. The Cassandra provides stable, reliable, and automatic scalable database services. It offers a full range of database solutions, such as disaster recovery, backup, recovery, monitoring, and alarms. You can see detail product introduction here.

Example Usage

Create a cassandra dataCenter

resource "alicloud_cassandra_cluster" "default" {
  cluster_name        = "cassandra-cluster-name-tf"
  data_center_name    = "dc-1"
  auto_renew          = "false"
  instance_type       = "cassandra.c.large"
  major_version       = "3.11"
  node_count          = "2"
  pay_type            = "PayAsYouGo"
  vswitch_id          = "vsw-xxxx1"
  disk_size           = "160"
  disk_type           = "cloud_ssd"
  maintain_start_time = "18:00Z"
  maintain_end_time   = "20:00Z"
  ip_white            = "127.0.0.1"
}

resource "alicloud_cassandra_data_center" "default" {
  cluster_id       = alicloud_cassandra_cluster.default.id
  data_center_name = "dc-2"
  auto_renew       = "false"
  instance_type    = "cassandra.c.large"
  node_count       = "2"
  pay_type         = "PayAsYouGo"
  vswitch_id       = "vsw-xxxx2"
  disk_size        = "160"
  disk_type        = "cloud_ssd"
}

This is a example for class netType dataCenter. You can find more detail with the examples/cassandra_data_center dir.

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

If you need full function, please import Cassandra cluster first. Cassandra dataCenter can be imported using the dcId:clusterId, e.g.

$ terraform import alicloud_cassandra_data_center.dc_2 cn-shenxxxx-x:cds-wz933ryoaurxxxxx