alicloud_amqp_instance

Provides a Amqp Instance resource. The instance of Amqp.

For information about RabbitMQ (AMQP) Instance and how to use it, see What is Instance.

Example Usage

Basic Usage

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

provider "alicloud" {
  region = "cn-hangzhou"
}


resource "alicloud_amqp_instance" "default" {
  instance_name  = var.name
  instance_type  = "professional"
  max_tps        = "1000"
  queue_capacity = "50"
  period_cycle   = "Year"
  support_eip    = "false"
  period         = "1"
  auto_renew     = "true"
  payment_type   = "Subscription"
}

Deleting alicloud_amqp_instance or removing it from your configuration

The alicloud_amqp_instance resource allows you to manage payment_type = "PayAsYouGo" instance, but Terraform cannot destroy it. Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance. You can resume managing the subscription instance via the AlibabaCloud Console.

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

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

$ terraform import alicloud_amqp_instance.example <id>