0
0
llucycodes42
The code defines a policy that will allow any host in the RabbitMQ permissions.guest.vhost to access the myResourceName resource. The policy has a pattern of ".*" and a priority of 0. The policy will also apply to all hosts.
Shortcut: tf_rabbitmq_policy
resource "rabbitmq_policy" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
vhost = "\${rabbitmq_permissions.guest.vhost}"
policy {
pattern = ".*"
priority = 0
apply_to = "all"
definition {
ha-mode = "all"
}
}
}