Files
opentf/website/source/docs/providers/rabbitmq/r/user.html.markdown
Joe Topjian 6262a73de7 provider/rabbitmq: Allow users without tags (#13798)
This commit makes the tags attribute optional for users. It also
handles cases when a user defines a tag as an empty string ("").
2017-04-20 20:10:20 +03:00

49 lines
1.1 KiB
Markdown

---
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.
~> **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).
## Example Usage
```hcl
resource "rabbitmq_user" "test" {
name = "mctest"
password = "foobar"
tags = ["administrator", "management"]
}
```
## 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.
* `tags` - (Optional) Which permission model to apply to the user. Valid
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
```