cloudstack_egress_firewall

    0

    0

    lucycodes42

    Terraform snippets

    This code created a rule that allows traffic from the IP range 10.0.0.0/8 and TCP ports 80 and 1000-2000 to flow through the firewall.

    Shortcut: tf_cloudstack_egress_firewall

    resource "cloudstack_egress_firewall" "${myResourceName}" {
       network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
    
       rule {
           cidr_list = ["10.0.0.0/8"]
           protocol = "tcp"
           ports = ["80", "1000-2000"]
       }
    }
    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.