github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/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 permissions { 31 configure = ".*" 32 write = ".*" 33 read = ".*" 34 } 35 } 36 ``` 37 38 ## Argument Reference 39 40 The following arguments are supported: 41 42 * `user` - (Required) The user to apply the permissions to. 43 44 * `vhost` - (Required) The vhost to create the resource in. 45 46 * `permissions` - (Required) The settings of the permissions. The structure is 47 described below. 48 49 The `permissions` block supports: 50 51 * `configure` - (Required) The "configure" ACL. 52 * `write` - (Required) The "write" ACL. 53 * `read` - (Required) The "read" ACL. 54 55 ## Attributes Reference 56 57 No further attributes are exported. 58 59 ## Import 60 61 Permissions can be imported using the `id` which is composed of `user@vhost`. 62 E.g. 63 64 ``` 65 terraform import rabbitmq_permissions.test user@vhost 66 ```