0
0
llucycodes42
The code creates a new firewall rule that allows TCP connection to port 80 and ports 1000-2000 on the network_id of 6eb22f91-7454-4107-89f4-36afcdf33021.
Shortcut: tf_cloudstack_firewall
resource "cloudstack_firewall" "${myResourceName}" {
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
rule {
cidr_list = ["10.0.0.0/8"]
protocol = "tcp"
ports = ["80", "1000-2000"]
}
}