2016-07-20 22:18:44 +02:00
|
|
|
---
|
|
|
|
layout: "rabbitmq"
|
|
|
|
page_title: "RabbitMQ: rabbitmq_vhost"
|
|
|
|
sidebar_current: "docs-rabbitmq-resource-vhost"
|
|
|
|
description: |-
|
|
|
|
Creates and manages a vhost on a RabbitMQ server.
|
|
|
|
---
|
|
|
|
|
|
|
|
# rabbitmq\_vhost
|
|
|
|
|
|
|
|
The ``rabbitmq_vhost`` resource creates and manages a vhost.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2016-07-20 22:18:44 +02:00
|
|
|
resource "rabbitmq_vhost" "my_vhost" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "my_vhost"
|
2016-07-20 22:18:44 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The name of the vhost.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
No further attributes are exported.
|
|
|
|
|
|
|
|
## Import
|
|
|
|
|
|
|
|
Vhosts can be imported using the `name`, e.g.
|
|
|
|
|
|
|
|
```
|
|
|
|
terraform import rabbitmq_vhost.my_vhost my_vhost
|
|
|
|
```
|