FEATURES PRICING ABOUT DOCS LOGIN

rabbitmq_policy

The rabbitmq_policy resource creates and manages policies for exchanges and queues.

Example Usage

resource "rabbitmq_vhost" "test" {
    name = "test"
}

resource "rabbitmq_permissions" "guest" {
    user = "guest"
    vhost = "${rabbitmq_vhost.test.name}"
    permissions {
        configure = ".*"
        write = ".*"
        read = ".*"
    }
}

resource "rabbitmq_policy" "test" {
    name = "test"
    vhost = "${rabbitmq_permissions.guest.vhost}"
    policy {
        pattern = ".*"
        priority = 0
        apply_to = "all"
        definition {
          ha-mode = "all"
        }
    }
}

Argument Reference

The following arguments are supported:

The policy block supports:

Attributes Reference

No further attributes are exported.

Import

Policies can be imported using the id which is composed of [email protected]. E.g.

terraform import rabbitmq_policy.test [email protected]

See the source of this document at Terraform.io

REQUEST A DEMO