文档

alicloud_lindorm_instance

更新时间:
一键部署

Provides a Lindorm Instance resource.

For information about Lindorm Instance and how to use it, see What is Instance.

-> NOTE: Available since v1.132.0.

-> NOTE: The Lindorm Instance does not support updating the specifications of multiple different engines, or the number of nodes at the same time.

Example Usage

Basic Usage

provider "alicloud" {
  region = local.region
}

variable "name" {
  default = "tf-example"
}

locals {
  region  = "cn-hangzhou"
  zone_id = "cn-hangzhou-h"
}

data "alicloud_zones" "default" {
  available_resource_creation = "VSwitch"
}

data "alicloud_vpcs" "default" {
  name_regex = "^default-NODELETING$"
}

data "alicloud_vswitches" "default" {
  vpc_id  = data.alicloud_vpcs.default.ids.0
  zone_id = local.zone_id
}

resource "alicloud_lindorm_instance" "default" {
  disk_category              = "cloud_efficiency"
  payment_type               = "PayAsYouGo"
  zone_id                    = local.zone_id
  vswitch_id                 = data.alicloud_vswitches.default.ids.0
  vpc_id                     = data.alicloud_vpcs.default.ids.0
  instance_name              = var.name
  table_engine_specification = "lindorm.g.4xlarge"
  table_engine_node_count    = "2"
  instance_storage           = "1920"
}

Argument Reference

The following arguments are supported:

  • vswitch_id - (Required, ForceNew) The vswitch id.
  • disk_category - (Required, ForceNew) The disk type of instance. Valid values: cloud_efficiency, cloud_ssd, cloud_essd, cloud_essd_pl0, capacity_cloud_storage, local_ssd_pro, local_hdd_pro. NOTE: From version 1.207.0, disk_category can be set to cloud_essd_pl0.
  • payment_type - (Required, ForceNew) The billing method. Valid values: PayAsYouGo and Subscription.
  • cold_storage - (Optional, Int) The cold storage capacity of the instance. Unit: GB. Valid values: [800, 1000000].
  • core_num - (Removed since v1.207.0) The core num. NOTE: Field core_num has been deprecated from provider version 1.188.0, and it has been removed from provider version 1.207.0.
  • core_spec - (Optional, ForceNew) The core spec. When disk_category is local_ssd_pro or local_hdd_pro, this filed is valid.
    • When disk_category is local_ssd_pro, the valid values is lindorm.i2.xlarge, lindorm.i2.2xlarge, lindorm.i2.4xlarge, lindorm.i2.8xlarge.
    • When disk_category is local_hdd_pro, the valid values is lindorm.d2c.6xlarge, lindorm.d2c.12xlarge, lindorm.d2c.24xlarge, lindorm.d2s.5xlarge, lindorm.d2s.10xlarge, lindorm.d1.2xlarge, lindorm.d1.4xlarge, lindorm.d1.6xlarge.
  • deletion_proection - (Optional, Bool) The deletion protection of instance.
  • duration - (Optional) The duration of paid. Valid when the payment_type is Subscription. When pricing_cycle set to Month, the valid value id 1 to 9. When pricing_cycle set to Year, the valid value id 1 to 3.
  • file_engine_node_count - (Optional, Int) The count of file engine.
  • file_engine_specification - (Optional) The specification of file engine. Valid values: lindorm.c.xlarge.
  • group_name - (Removed since v1.211.0) The group name. NOTE: Field group_name has been removed from provider version 1.211.0.
  • instance_name - (Optional) The name of the instance.
  • instance_storage - (Optional) The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB.
  • ip_white_list - (Optional, List) The ip white list of instance.
  • lts_node_count - (Optional, Int) The count of lindorm tunnel service.
  • lts_node_specification - (Optional) The specification of lindorm tunnel service. Valid values: lindorm.g.2xlarge, lindorm.g.xlarge.
  • phoenix_node_count - (Removed since v1.211.0) The count of phoenix. NOTE: Field phoenix_node_count has been removed from provider version 1.211.0.
  • phoenix_node_specification - (Removed since v1.211.0) The specification of phoenix. NOTE: Field phoenix_node_specification has been removed from provider version 1.211.0.
  • pricing_cycle - (Optional) The pricing cycle. Valid when the payment_type is Subscription. Valid values: Month and Year.
  • search_engine_node_count - (Optional, Int) The count of search engine.
  • search_engine_specification - (Optional) The specification of search engine. Valid values: lindorm.g.2xlarge, lindorm.g.4xlarge, lindorm.g.8xlarge, lindorm.g.xlarge.
  • table_engine_node_count - (Optional, Int) The count of table engine.
  • table_engine_specification - (Optional) The specification of table engine. Valid values: lindorm.c.2xlarge, lindorm.c.4xlarge, lindorm.c.8xlarge, lindorm.g.xlarge, lindorm.g.2xlarge, lindorm.g.4xlarge, lindorm.g.8xlarge.
  • time_series_engine_node_count - (Optional, Int) The count of time series engine.
  • time_serires_engine_specification - (Deprecated since v1.182.0) Field time_serires_engine_specification has been deprecated from provider version 1.182.0. New field time_series_engine_specification instead.
  • time_series_engine_specification - (Optional, Available since v1.182.0) The specification of time series engine. Valid values: lindorm.g.xlarge, lindorm.g.2xlarge, lindorm.g.4xlarge, lindorm.g.8xlarge, lindorm.r.8xlarge.
  • stream_engine_node_count - (Optional, Int, Available since v1.211.0) The number of LindormStream nodes in the instance.
  • stream_engine_specification - (Optional, Available since v1.211.0) The specification of the LindormStream nodes in the instance. Valid values: lindorm.g.xlarge, lindorm.g.2xlarge, lindorm.g.4xlarge, lindorm.g.8xlarge.
  • upgrade_type - (Removed since v1.207.0) The upgrade type. NOTE: Field upgrade_type has been deprecated from provider version 1.163.0, and it has been removed from provider version 1.207.0.
  • vpc_id - (Optional, ForceNew, Available since v1.185.0) The VPC ID of the instance.
  • zone_id - (Optional, ForceNew) The zone ID of the instance.
  • resource_group_id - (Optional, ForceNew, Available since v1.177.0) The ID of the resource group.
  • log_num - (Optional, Int, Available since v1.191.0) The multiple Availability Zone Instance, number of log nodes. this parameter is required if you want to create multiple availability zone instances. Valid values: 4 to 400.
  • log_single_storage - (Optional, Int, Available since v1.191.0) The multi-availability instance, log single-node disk capacity. This parameter is required if you want to create multiple availability zone instances. Valid values: 400 to 64000.
  • arbiter_zone_id - (Optional, ForceNew, Available since v1.191.0) The multiple Availability Zone Instance, the availability zone ID of the coordinating availability zone. required if you need to create multiple availability zone instances.
  • multi_zone_combination - (Optional, ForceNew, Available since v1.191.0) The multi-zone combinations. Availability zone combinations are supported on the sale page. required if you need to create multiple availability zone instances. Valid values: ap-southeast-5abc-aliyun, cn-hangzhou-ehi-aliyun, cn-beijing-acd-aliyun, ap-southeast-1-abc-aliyun, cn-zhangjiakou-abc-aliyun, cn-shanghai-efg-aliyun, cn-shanghai-abd-aliyun, cn-hangzhou-bef-aliyun, cn-hangzhou-bce-aliyun, cn-beijing-fgh-aliyun, cn-shenzhen-abc-aliyun.
  • arbiter_vswitch_id - (Optional, ForceNew, Available since v1.191.0) The multi-availability zone instance, coordinating the virtual switch ID of the availability zone, the switch must be located under the availability zone corresponding to the ArbiterZoneId. This parameter is required if you need to create multiple availability zone instances.
  • standby_zone_id - (Optional, ForceNew, Available since v1.191.0) The multiple availability zone instances with availability zone IDs for the prepared availability zones. required if you need to create multiple availability zone instances.
  • log_spec - (Optional, Available since v1.191.0) The multiple availability zone instances, log node specification. required if you need to create multiple availability zone instances. Valid values: lindorm.sn1.large, lindorm.sn1.2xlarge.
  • log_disk_category - (Optional, ForceNew, Available since v1.191.0) The multi-available zone instance, log node disk type. required if you need to create multiple availability zone instances. Valid values: cloud_efficiency, cloud_ssd.
  • core_single_storage - (Optional, Int, Available since v1.191.0) The multiple availability zone instances, CORE single node capacity. required if you want to create multiple availability zone instances. Valid values: 400 to 64000.
  • standby_vswitch_id - (Optional, ForceNew, Available since v1.191.0) The multiple availability zone instances, the virtual switch ID of the ready availability zone must be under the availability zone corresponding to the StandbyZoneId. required if you need to create multiple availability zone instances.
  • arch_version - (Optional, ForceNew, Available since v1.191.0) The deployment architecture. If you do not fill in this parameter, the default is 1.0. to create multiple availability instances, fill in 2.0. if you need to create multiple availability instances, this parameter is required. Valid values: 1.0 to 2.0.
  • primary_vswitch_id - (Optional, ForceNew, Available since v1.192.0) Multi-available zone instances, the virtual switch ID of the primary available zone, must be under the available zone corresponding to the PrimaryZoneId. required if you need to create multiple availability zone instances.
  • primary_zone_id - (Optional, ForceNew, Available since v1.192.0) Multi-availability zone instance with the availability zone ID of the main availability zone. required if you need to create multiple availability zone instances.
  • tags - (Optional, Available since v1.177.0) A mapping of tags to assign to the resource.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Instance.
  • enabled_file_engine - (Available since v1.163.0) Whether to enable file engine.
  • enabled_time_serires_engine - (Available since v1.163.0) Whether to enable time serires engine.
  • enabled_table_engine - (Available since v1.163.0) Whether to enable table engine.
  • enabled_search_engine - (Available since v1.163.0) Whether to enable search engine.
  • enabled_lts_engine - (Available since v1.163.0) Whether to enable lts engine.
  • enabled_stream_engine - (Available since v1.211.0) Whether to enable streaming engine.
  • service_type - (Available since v1.196.0) The instance type.
  • status - The status of Instance.

Timeouts

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

  • create - (Defaults to 90 mins) Used when create the Instance.
  • update - (Defaults to 180 mins) Used when update the Instance.
  • delete - (Defaults to 10 mins) Used when delete the Instance.

Import

Lindorm Instance can be imported using the id, e.g.

$ terraform import alicloud_lindorm_instance.example <id>

  • 本页导读 (0)