2016-07-20 22:18:44 +02:00
|
|
|
---
|
|
|
|
layout: "rabbitmq"
|
|
|
|
page_title: "RabbitMQ: rabbitmq_user"
|
|
|
|
sidebar_current: "docs-rabbitmq-resource-user"
|
|
|
|
description: |-
|
|
|
|
Creates and manages a user on a RabbitMQ server.
|
|
|
|
---
|
|
|
|
|
|
|
|
# rabbitmq\_user
|
|
|
|
|
|
|
|
The ``rabbitmq_user`` resource creates and manages a user.
|
|
|
|
|
2017-03-29 11:37:36 +02:00
|
|
|
~> **Note:** All arguments including username and password will be stored in the raw state as plain-text.
|
|
|
|
[Read more about sensitive data in state](/docs/state/sensitive-data.html).
|
|
|
|
|
2016-07-20 22:18:44 +02:00
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2016-07-20 22:18:44 +02:00
|
|
|
resource "rabbitmq_user" "test" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "mctest"
|
|
|
|
password = "foobar"
|
|
|
|
tags = ["administrator", "management"]
|
2016-07-20 22:18:44 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The name of the user.
|
|
|
|
|
|
|
|
* `password` - (Required) The password of the user. The value of this argument
|
|
|
|
is plain-text so make sure to secure where this is defined.
|
|
|
|
|
2017-04-20 19:10:20 +02:00
|
|
|
* `tags` - (Optional) Which permission model to apply to the user. Valid
|
2016-07-20 22:18:44 +02:00
|
|
|
options are: management, policymaker, monitoring, and administrator.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
No further attributes are exported.
|
|
|
|
|
|
|
|
## Import
|
|
|
|
|
|
|
|
Users can be imported using the `name`, e.g.
|
|
|
|
|
|
|
|
```
|
|
|
|
terraform import rabbitmq_user.test mctest
|
|
|
|
```
|