» alicloud_hbase_instance

Provides a HBase instance resource supports replica set instances only. the HBase 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 hbase instance

resource "alicloud_hbase_instance" "default" {
  name = "tf_testAccHBase_classic"
  zone_id = "cn-shenzhen-b"
  engine_version = "2.0"
  master_instance_type = "hbase.sn1.large"
  core_instance_type = "hbase.sn1.large"
  core_instance_quantity = 2
  core_disk_type = "cloud_efficiency"
  core_disk_size = 100
  pay_type = "PostPaid"
  cold_storage_size = 0
}

this is a example for class netType instance. you can find more detail with the examples/hbase dir.

» Argument Reference

The following arguments are supported:

  • name - (Required) HBase instance name. Length must be 2-128 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted.
  • zone_id - (Optional, ForceNew) The Zone to launch the HBase instance. if vswitch_id is not empty, this zone_id can be "" or consistent.
  • hbase - (Optional, ForceNew) "hbase/hbaseue/bds", The following types are supported after v1.73.0: hbaseue and bds
  • engine_version - (Required, ForceNew) hbase major version. hbase:1.1/2.0, hbaseue:2.0, bds:1.0, unsupport other engine temporarily. Value options can refer to the latest docs CreateInstance.
  • master_instance_typecore_instance_type - (Required, ForceNew) Instance specification. see Instance specifications. or you can call describeInstanceType api.
  • core_instance_quantity- (Optional. ForceNew) default=2. if core_instance_quantity > 1,this is cluster's instance. if core_instance_quantity = 1,this is a single instance.
  • core_disk_type- (Required, ForceNew) Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro. local_disk size is fixed.
  • core_disk_size - (Optional, ForceNew) User-defined HBase instance one core node's storage space.Unit: GB. Value range:
    • Custom storage space; value range: [100,2000]
    • 10-GB increments.
  • pay_type - (Optional, ForceNew) Valid values are PrePaid, PostPaid,System default to PostPaid.
  • duration - (Optional, ForceNew) 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = PrePaid. unit: month.
  • auto_renew - (Optional, ForceNew) true, false, System default to false, valid when pay_type = PrePaid.
  • vswitch_id - (Optional, ForceNew) if vswitch_id is not empty, that mean net_type = vpc and has a same region. if vswitch_id is empty, net_type_classic
  • cold_storage_size - (Optional, ForceNew) 0 or 0+. 0 means is_cold_storage = false. 0+ means is_cold_storage = true
  • maintain_start_time - (Optional, Available in 1.73.0) The start time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
  • maintain_end_time - (Optional, Available in 1.73.0) The end time of the operation and maintenance time period of the instance, in the format of HH:mmZ (UTC time).
  • deletion_protection - (Optional, Available in 1.73.0) the switch of delete protection. true: delete protect, false: no delete protect. you must set false when you want to delete cluster.
  • tags - (Optional, Available in 1.73.0) A mapping of tags to assign to the resource.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the HBase.

» Timeouts

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

  • create - (Defaults to 30 mins) Used when creating the HBase instance (until it reaches the initial ACTIVATION status).
  • delete - (Defaults to 30 mins) Used when terminating the HBase instance.

» Import

HBase can be imported using the id, e.g.

$ terraform import alicloud_hbase_instance.example hb-wz96815u13k659fvd