» alicloud_ots_instance

This resource will help you to manager a Table Store Instance. It is foundation of creating data table.

» Example Usage

# Create an OTS instance
resource "alicloud_ots_instance" "foo" {
  name        = "my-ots-instance"
  description = "for table"
  accessed_by = "Vpc"
  tags = {
    Created = "TF"
    For     = "Building table"

» Argument Reference

The following arguments are supported:

  • name - (Required, ForceNew) The name of the instance.
  • accessed_by - The network limitation of accessing instance. Valid values:

    • Any - Allow all network to access the instance.
    • Vpc - Only can the attached VPC allow to access the instance.
    • ConsoleOrVpc - Allow web console or the attached VPC to access the instance.

    Default to "Any".

  • instance_type - (ForceNew) The type of instance. Valid values are "Capacity" and "HighPerformance". Default to "HighPerformance".

  • description - (Optional, ForceNew) The description of the instance. Currently, it does not support modifying.

  • tags - A mapping of tags to assign to the instance.

» Attributes Reference

The following attributes are exported:

  • id - The resource ID. The value is same as the "name".
  • name - The instance name.
  • description - The instance description.
  • accessed_by - TThe network limitation of accessing instance.
  • instance_type - The instance type.
  • tags - The instance tags.

» Import

OTS instance can be imported using instance id or name, e.g.

$ terraform import alicloud_ots_instance.foo "my-ots-instance"