rabbitmq_policy

    0

    0

    lucycodes42

    Terraform snippets

    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"
           }
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.