vcd_firewall_rules

    0

    0

    lucycodes42

    Terraform snippets

    The code above creates a firewall rule for a resource called "myResourceName" with the following description:

    my-description-${myResourceName}

    The rule denies FTP traffic out of the Edge Gateway named "Edge Gateway Name" to any destination port and IP address.

    Shortcut: tf_vcd_firewall_rules

    resource "vcd_firewall_rules" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       edge_gateway   = "Edge Gateway Name"
       default_action = "drop"
       rule {
           description      = "deny-ftp-out"
           policy           = "deny"
           protocol         = "tcp"
           destination_port = "21"
           destination_ip   = "any"
           source_port      = "any"
           source_ip        = "10.10.0.0/24"
       }
    }
    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.