alicloud_amqp_virtual_host
更新时间:
Amqp Virtual Host.
Provides a RabbitMQ (AMQP) Virtual Host resource.
For information about RabbitMQ (AMQP) Virtual Host and how to use it, see What is Virtual Host.
-> NOTE: Available since v1.126.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_amqp_instance" "default" {
instance_name = "${var.name}-${random_integer.default.result}"
instance_type = "enterprise"
max_tps = 3000
max_connections = 2000
queue_capacity = 200
payment_type = "Subscription"
renewal_status = "AutoRenewal"
renewal_duration = 1
renewal_duration_unit = "Year"
support_eip = true
}
resource "alicloud_amqp_virtual_host" "default" {
instance_id = alicloud_amqp_instance.default.id
virtual_host_name = "${var.name}-${random_integer.default.result}"
}
Argument Reference
The following arguments are supported:
instance_id
- (Required, ForceNew) InstanceId.virtual_host_name
- (Required, ForceNew) VirtualHostName.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Sasl User. It formats as<instance_id>:<virtual_host_name>
.
Timeouts
-> NOTE: Available since v1.259.0.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Virtual Host.delete
- (Defaults to 5 mins) Used when delete the Virtual Host.
Import
RabbitMQ (AMQP) Virtual Host can be imported using the id, e.g.
$ terraform import alicloud_amqp_virtual_host.example <instance_id>:<virtual_host_name>
该文章对您有帮助吗?