azurerm_lb_nat_rule

    0

    0

    lucycodes42

    Terraform snippets

    The azurerm_lb_nat_rule resource defines a rule that allows RDP access from the West US location to the port 3389 on the frontend computer. The rule allows traffic to flow only from the public IP address of the frontend computer to the backend computer.

    Shortcut: tf_azurerm_lb_nat_rule

    resource "azurerm_lb_nat_rule" "${MyResource}" {
       name = "RDP Access"
       location = "West US"
       resource_group_name = "\${azurerm_resource_group.test.name}"
       loadbalancer_id = "\${azurerm_lb.test.id}"
       protocol = "Tcp"
       frontend_port = 3389
       backend_port = 3389
       frontend_ip_configuration_name = "PublicIPAddress"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.