alicloud_tsdb_instance
更新时间:
Provides a Time Series Database (TSDB) Instance resource.
For information about Time Series Database (TSDB) Instance and how to use it, see What is Time Series Database (TSDB).
-> NOTE: Available since v1.112.0.
-> DEPRECATED:  This resource has been deprecated from version 1.223.1.
Example Usage
Basic Usage
data "alicloud_tsdb_zones" "example" {}
resource "alicloud_vpc" "example" {
  cidr_block = "192.168.0.0/16"
  name       = "tf-testaccTsdbInstance"
}
resource "alicloud_vswitch" "example" {
  availability_zone = data.alicloud_tsdb_zones.example.ids.0
  cidr_block        = "192.168.1.0/24"
  vpc_id            = alicloud_vpc.example.id
}
resource "alicloud_tsdb_instance" "example" {
  payment_type     = "PayAsYouGo"
  vswitch_id       = alicloud_vswitch.example.id
  instance_storage = "50"
  instance_class   = "tsdb.1x.basic"
  engine_type      = "tsdb_tsdb"
  instance_alias   = "tf-testaccTsdbInstance"
}
Argument Reference
The following arguments are supported:
- app_key- (Optional) The app key.
- disk_category- (Optional, ForceNew) The disk type of instance. Valid when the engine type is- tsdb_influxdb.- cloud_ssdrefers to SSD disk,- cloud_efficiencyrefers to efficiency disk,- cloud_essdrefers to ESSD PL1 disk. Valid values:- cloud_efficiency,- cloud_essd,- cloud_ssd.
- duration- (Optional, ForceNew) The duration.
- engine_type- (Optional, ForceNew) The engine type of instance Enumerative:- tsdb_tsdbrefers to TSDB,- tsdb_influxdbrefers to TSDB for InfluxDB️.
- instance_alias- (Optional) The alias of the instance.
- instance_class- (Required) The specification of the instance.- Following enumerative value for TSDB for InfluxDB️ standart edition:
- influxdata.n1.mxlargerefers to 2 CPU 8GB memory;
- influxdata.n1.xlargerefers to 4 CPU 16GB memory;
- influxdata.n1.2xlargerefers to 8 CPU 32 GB memory;
- influxdata.n1.4xlargerefers to 16 CPU 64 GB memory;
- influxdata.n1.8xlargerefers to 32 CPU 128 GB memory;
- influxdata.n1.16xlargerefers to 64 CPU 256 GB memory.
- Following enumerative value for TSDB for InfluxDB High-availability edition:
- influxdata.n1.mxlarge_harefers to 2 CPU 8GB memory;
- influxdata.n1.xlarge_harefers to 4 CPU 16GB memory;
- influxdata.n1.2xlarge_harefers to 8 CPU 32 GB memory;
- influxdata.n1.4xlarge_harefers to 16 CPU 64 GB memory;
- influxdata.n1.8xlarge_harefers to 32 CPU 128 GB memory;
- influxdata.n1.16xlarge_harefers to 64 CPU 256 GB memory.
- Following enumerative value for TSDB:
- tsdb.1x.basicrefers to basic edition I;
- tsdb.3x.basicrefers to basic edition II;
- tsdb.4x.basicrefers to basic edtion III;
- tsdb.12x.standardrefers to standard edition I;
- tsdb.24x.standardrefers to standard edition II;
- tsdb.48x.largerefers to ultimate edition I;
- tsdb.96x.largerefers to ultimate edition II.
 
- instance_storage- (Required) The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
- payment_type- (Required, ForceNew) The billing method. Valid values:- PayAsYouGoand- Subscription. The- PayAsYouGovalue indicates the pay-as-you-go method, and the- Subscriptionvalue indicates the subscription method.
- vswitch_id- (Required, ForceNew) The vswitch id.
- zone_id- (Optional, Computed, ForceNew) The zone ID of the instance.
Attributes Reference
The following attributes are exported:
- id- The resource ID in terraform of Instance.
- status- Instance status, enumerative:- ACTIVATION,- DELETED,- CREATING,- CLASS_CHANGING,- LOCKED.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
- create- (Defaults to 31 mins) Used when create the Instance.
- update- (Defaults to 31 mins) Used when update the Instance.
Import
TSDB Instance can be imported using the id, e.g.
$ terraform import alicloud_tsdb_instance.example <id>
该文章对您有帮助吗?