alicloud_cddc_dedicated_host_group

Provides a ApsaraDB for MyBase Dedicated Host Group resource.

For information about ApsaraDB for MyBase Dedicated Host Group and how to use it, see What is Dedicated Host Group.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}
resource "alicloud_vpc" "default" {
  vpc_name   = var.name
  cidr_block = "10.4.0.0/16"
}

resource "alicloud_cddc_dedicated_host_group" "default" {
  engine                    = "MySQL"
  vpc_id                    = alicloud_vpc.default.id
  cpu_allocation_ratio      = 101
  mem_allocation_ratio      = 50
  disk_allocation_ratio     = 200
  allocation_policy         = "Evenly"
  host_replace_policy       = "Manual"
  dedicated_host_group_desc = var.name
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

ApsaraDB for MyBase Dedicated Host Group can be imported using the id, e.g.

$ terraform import alicloud_cddc_dedicated_host_group.example <id>