alicloud_lindorm_instance

Provides a Lindorm Instance resource.

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

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:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

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

$ terraform import alicloud_lindorm_instance.example <id>