alicloud_ons_instance

Provides an ONS instance resource.

For more information about how to use it, see RocketMQ Instance Management API.

Example Usage

Basic Usage

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

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_ons_instance" "example" {
  instance_name = "${var.name}-${random_integer.default.result}"
  remark        = var.name
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

ONS INSTANCE can be imported using the id, e.g.

$ terraform import alicloud_ons_instance.instance MQ_INST_1234567890_Baso1234567