github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/rabbitmq/r/permissions.html.markdown (about) 1 --- 2 layout: "rabbitmq" 3 page_title: "RabbitMQ: rabbitmq_permissions" 4 sidebar_current: "docs-rabbitmq-resource-permissions" 5 description: |- 6 Creates and manages a user's permissions on a RabbitMQ server. 7 --- 8 9 # rabbitmq\_permissions 10 11 The ``rabbitmq_permissions`` resource creates and manages a user's set of 12 permissions. 13 14 ## Example Usage 15 16 ``` 17 resource "rabbitmq_vhost" "test" { 18 name = "test" 19 } 20 21 resource "rabbitmq_user" "test" { 22 name = "mctest" 23 password = "foobar" 24 tags = ["administrator"] 25 } 26 27 resource "rabbitmq_permissions" "test" { 28 user = "${rabbitmq_user.test.name}" 29 vhost = "${rabbitmq_vhost.test.name}" 30 31 permissions { 32 configure = ".*" 33 write = ".*" 34 read = ".*" 35 } 36 } 37 ``` 38 39 ## Argument Reference 40 41 The following arguments are supported: 42 43 * `user` - (Required) The user to apply the permissions to. 44 45 * `vhost` - (Required) The vhost to create the resource in. 46 47 * `permissions` - (Required) The settings of the permissions. The structure is 48 described below. 49 50 The `permissions` block supports: 51 52 * `configure` - (Required) The "configure" ACL. 53 * `write` - (Required) The "write" ACL. 54 * `read` - (Required) The "read" ACL. 55 56 ## Attributes Reference 57 58 No further attributes are exported. 59 60 ## Import 61 62 Permissions can be imported using the `id` which is composed of `user@vhost`. 63 E.g. 64 65 ``` 66 terraform import rabbitmq_permissions.test user@vhost 67 ```