alicloud_lindorm_instance_v2

更新时间:
复制 MD 格式

Provides a Lindorm Instance V2 resource.

Cloud-native multi-model database.

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

-> NOTE: Available since v1.260.0.

Example Usage

Basic Usage


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

provider "alicloud" {
  region = "cn-beijing"
}

resource "alicloud_vpc" "defaultR8vXlP" {
  cidr_block = "172.16.0.0/16"
}

resource "alicloud_vswitch" "default9umuzwH" {
  vpc_id     = alicloud_vpc.defaultR8vXlP.id
  zone_id    = "cn-beijing-h"
  cidr_block = "172.16.0.0/24"
}

resource "alicloud_vswitch" "defaultgOFAo3L" {
  vpc_id     = alicloud_vpc.defaultR8vXlP.id
  zone_id    = "cn-beijing-l"
  cidr_block = "172.16.1.0/24"
}

resource "alicloud_vswitch" "defaultTAbr2pJ" {
  vpc_id     = alicloud_vpc.defaultR8vXlP.id
  zone_id    = "cn-beijing-j"
  cidr_block = "172.16.2.0/24"
}


resource "alicloud_lindorm_instance_v2" "default" {
  standby_zone_id = "cn-beijing-l"
  engine_list {
    engine_type = "TABLE"
    node_group {
      node_count          = "4"
      node_spec           = "lindorm.g.2xlarge"
      resource_group_name = "cx-mz-rg"
    }
  }
  cloud_storage_size = "400"
  primary_zone_id    = "cn-beijing-h"
  zone_id            = "cn-beijing-h"
  cloud_storage_type = "PerformanceStorage"
  arch_version       = "2.0"
  vswitch_id         = alicloud_vswitch.default9umuzwH.id
  standby_vswitch_id = alicloud_vswitch.defaultgOFAo3L.id
  primary_vswitch_id = alicloud_vswitch.default9umuzwH.id
  arbiter_vswitch_id = alicloud_vswitch.defaultTAbr2pJ.id
  vpc_id             = alicloud_vpc.defaultR8vXlP.id
  instance_alias     = "preTest-MZ"
  payment_type       = "POSTPAY"
  arbiter_zone_id    = "cn-beijing-j"
  auto_renewal       = false
}

Need more examples? VIEW MORE EXAMPLES

Argument Reference

The following arguments are supported:

  • arbiter_vswitch_id - (Optional, ForceNew) Coordination Zone VswitchId
  • arbiter_zone_id - (Optional, ForceNew) Coordination Zone ZoneId
  • arch_version - (Required) Deployment Scenario

Enumeration value:

  • 1.0: Single Zone
  • 2.0: Multi-AZ Basic Edition
  • 3.0: Multi-AZ High Availability Edition

-> NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.

  • auto_renew_duration - (Optional, Available since v1.262.0) Automatic renewal duration. Unit: Month.

Value range: 1 to 12.

-> NOTE: This item takes effect only when AutoRenewal is true.

-> NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.

  • auto_renewal - (Optional) Whether the instance is automatically renewed. Enumerated values:
    • true: Automatic renewal.
    • false: does not renew automatically.

The default value is false

-> NOTE: This parameter is valid only when the PayType value is PREPAY (Subscription).

-> NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.

  • cloud_storage_size - (Optional, Int) The Sales page storage type supports cloud storage and local sites. If you select cloud storage, this parameter is required.

    -> NOTE: Cloud storage capacity in GB

  • cloud_storage_type - (Optional, ForceNew) Cloud storage type, the sales page storage type supports cloud storage and local sites. If you select cloud storage, this parameter is required.

Enumeration value:

  • StandardStorage: Standard cloud storage
  • Performance storage: Performance-based cloud storage
  • Capacity Storage: Capacity-based cloud storage
  • deletion_protection - (Optional, Computed) Whether to enable deletion protection

  • duration - (Optional, Int, Available since v1.262.0) The specified duration when the resource is purchased. Only the subscription instances are valid.

    -> NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.

  • engine_list - (Required, Set) Engine List See engine_list below.

  • instance_alias - (Required) Instance name

  • payment_type - (Required) Resource attribute fields representing payment types

Enumeration value:

  • PREPAY: Prepaid mode
  • POSTPAY: Postpay mode
  • pricing_cycle - (Optional, Available since v1.262.0) Purchase duration unit: Month, Year

    -> NOTE: The parameter is immutable after resource creation. It only applies during resource creation and has no effect when modified post-creation.

  • primary_vswitch_id - (Optional, ForceNew) Primary zone VswitchId

  • primary_zone_id - (Optional, ForceNew) Primary zone ZoneID

  • standby_vswitch_id - (Optional, ForceNew) Standby zone VswitchId

  • standby_zone_id - (Optional, ForceNew) Standby zone ZoneID

  • vpc_id - (Required, ForceNew) VpcId

  • vswitch_id - (Required, ForceNew) VswitchId

  • white_ip_list - (Optional, List, Available since v1.266.0) Instance whitelist list See white_ip_list below.

  • zone_id - (Required, ForceNew) The zone ID of the resource

engine_list

The engine_list supports the following:

  • engine_type - (Required) Engine

Enumeration value:

  • TABLE: Wide table engine
  • TSDB: Time series Engine
  • LSEARCH: Search engine
  • LTS: LTS engine
  • LVECTOR: Vector engine
  • LCOLUMN: Column-store engine
  • LAI: AI engine
  • FILE: The underlying file engine
  • LMESSAGE: Message engine
  • LROW: Wide table Engine 3.0
  • LSTREAM: Stream engine
  • node_group - (Optional, Set) Node Group List See node_group below.

engine_list-node_group

The engine_list-node_group supports the following:

  • node_count - (Required, Int) Number of nodes

  • node_disk_size - (Optional, Int) Local cloud disk storage capacity

  • node_disk_type - (Optional) Node Disk Type

  • node_spec - (Required) Node Specifications

    • Valid values when selecting cloud storage:
    • lindorm.c.2xlarge, 8 cores 16GB
    • lindorm.g.2xlarge, 8 cores 32GB
    • lindorm.c.4xlarge, 16 cores 32GB
    • lindorm.g.4xlarge, 16 cores 64GB
    • lindorm.c.8xlarge, 32 core 64GB
    • lindorm.g.8xlarge, 32 core 128GB
    • lindorm.g.8xlarge, 8 cores 64GB
    • lindorm.r.4xlarge, 16 cores 128GB
    • lindorm.r.8xlarge, 32 cores 256GB
    • Valid values when local disk storage is selected:
    • lindorm.d2s.5XLarge, 20 core 88GB(D2S)
    • lindorm.d2s.10XLarge, 40 core 176GB(D2S)
    • lindorm.d2c.6XLarge, 24 core 88GB(D2C)
    • lindorm.d2c.12XLarge, 48 cores 176GB(D2C)
    • lindorm.d2C.24XLarge, 96 core 352GB(D2C)
    • lindorm.d1.2xlarge, 8 cores 32GB(D1NE)
    • lindorm.d1.4xlarge, 16 cores 64GB(D1NE)
    • lindorm.d1.6xlarge, 24 cores 96GB(D1NE)
    • lindorm.sd3c.3XLarge, 14 cores 56GB(D3C PRO)
    • lindorm.sd3c.7XLarge, 28 core 112GB(D3C PRO)
    • lindorm.sd3c.14XLarge, 56 core 224GB(D3C PRO)
    • lindorm.d3s.2XLarge, 8 core 32GB(D3S)
    • lindorm.d3s.4XLarge, 16 cores 64GB(D3S)
    • lindorm.d3s.8XLarge, 32 core 128GB(D3S)
    • lindorm.d3s.12XLarge, 48 cores 192GB(D3S)
    • lindorm.d3s.16XLarge, 64 cores 256GB(D3S)
    • lindorm.i4.xlarge, 4 core 32GB(I4)
    • lindorm.i4.2xlarge, 8 core 64GB(I4)
    • lindorm.i4.4xlarge, 16 cores 128GB(I4)
    • lindorm.i4.8xlarge, 32 cores 256GB(I4)
    • lindorm.i2.xlarge, 4 core 32GB(I2)
    • lindorm.i2.2xlarge, 8 core 64GB(I2)
    • lindorm.i2.4xlarge, 16 cores 128GB(I2)
    • lindorm.i2.8xlarge, 32 cores 256GB(I2)
  • resource_group_name - (Required) Resource group name

white_ip_list

The white_ip_list supports the following:

  • group_name - (Required, Available since v1.266.0) Group Name
  • ip_list - (Required, Available since v1.266.0) Whitelist information

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • engine_list - Engine List
    • connect_address_list - Connect Address List
      • address - Connect Address
      • port - Connect Port
      • type - Connect Type:
    • is_last_version - Whether it is the latest version
    • latest_version - Latest Version
    • node_group - Node Group List
      • category - Node Type
      • cpu_core_count - Number of CPU cores
      • enable_attach_local_disk - Whether to mount local cloud disks
      • memory_size_gi_b - Node memory size
      • spec_id - Spec Id
      • status - Node Status
    • version - Engine Version
  • region_id - The region ID of the resource

Timeouts

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

  • create - (Defaults to 101 mins) Used when create the Instance V2.
  • delete - (Defaults to 20 mins) Used when delete the Instance V2.
  • update - (Defaults to 1001 mins) Used when update the Instance V2.

Import

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

$ terraform import alicloud_lindorm_instance_v2.example <id>