Modular Network Firewall Rule on Google Compute Engine for Terraform.
module "firewall-1" {
source = "github.com/kickin6/terraform-google-firewall-rule"
name = "default-ingress-deny-tcp-80"
project = "${var.project}"
network = "default"
priority = "1000"
protocol = "${var.protocol}"
ports = "${var.ports}"
target_tags = "${var.target_tags}"
}
Because some variables will not work when combined with certain other variables, these sub-modules are pre-configured to use compatible variables.
Here is a list of incompatible variables.
destination_ranges
source_ranges
source_tags
source_tags
target_tags
source_tags
target_tags