alicloud_lindorm_instance_v2
更新时间:
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
}
Argument Reference
The following arguments are supported:
arbiter_vswitch_id- (Optional, ForceNew) Coordination Zone VswitchIdarbiter_zone_id- (Optional, ForceNew) Coordination Zone ZoneIdarch_version- (Required) Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
auto_renewal- (Optional, ForceNew) Auto Renewcloud_storage_size- (Optional, Int)
Cloud storage capacity in GB
cloud_storage_type- (Optional, ForceNew)
- StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
deletion_protection- (Optional, Computed) Whether to enable deletion protectionengine_list- (Required, Set) Engine List Seeengine_listbelow.instance_alias- (Required) Instance namepayment_type- (Required, ForceNew) The payment type of the resourceprimary_vswitch_id- (Optional, ForceNew) Primary zone VswitchIdprimary_zone_id- (Optional, ForceNew) Primary zone ZoneIDstandby_vswitch_id- (Optional, ForceNew) Standby zone VswitchIdstandby_zone_id- (Optional, ForceNew) Standby zone ZoneIDvpc_id- (Required, ForceNew) VpcIdvswitch_id- (Required, ForceNew) VswitchIdzone_id- (Required, ForceNew) The zone ID of the resource
engine_list
The engine_list supports the following:
engine_type- (Required, ForceNew) Enginenode_group- (Optional, Set) Node Group List Seenode_groupbelow.
engine_list-node_group
The engine_list-node_group supports the following:
node_count- (Required, Int) Number of nodesnode_disk_size- (Optional, Int) Local cloud disk storage capacitynode_disk_type- (Optional, ForceNew) Node Disk Typenode_spec- (Required) Node Specificationsresource_group_name- (Required, ForceNew) Resource group name
Attributes Reference
The following attributes are exported:
id- The ID of the resource supplied above.engine_list- Engine Listconnect_address_list- Connect Address Listaddress- Connect Addressport- Connect Porttype- Connect Type:
is_last_version- Whether it is the latest versionlatest_version- Latest Versionnode_group- Node Group Listcategory- Node Typecpu_core_count- Number of CPU coresenable_attach_local_disk- Whether to mount local cloud disksmemory_size_gi_b- Node memory sizespec_id- Spec Idstatus- 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>
该文章对您有帮助吗?