Manage Lindorm Instances with alicloud_lindorm_instance
masterThe alicloud_lindorm_instance resource allows you to provision and manage a Lindorm Instance on Alibaba Cloud.
Important Limitations:
- The Lindorm Instance does not support updating the specifications of multiple different engines or the number of nodes simultaneously.
- Some parameters require
ForceNew(recreation of the resource) if changed.
Key Configuration Areas:
- Network: Requires
vswitch_idand optionallyvpc_id. - Billing: Supports
PayAsYouGoandSubscriptionviapayment_type. - Storage: Configure
disk_category(e.g.,cloud_efficiency,cloud_ssd,cloud_essd) andinstance_storage(in GB, must be divisible by 80). - Engine Specifications: You can configure specific nodes and specifications for various engines including
table_engine,search_engine,file_engine,time_series_engine,stream_engine, andlts_node(Lindorm Tunnel Service).
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"
}