0
0
llucycodes42
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"
}
}