- firewall move to vpc.tf

This commit is contained in:
Vassiliy Yegorov
2019-07-13 11:11:55 +07:00
parent 14e6ae1973
commit 0ef4cade94
2 changed files with 19 additions and 20 deletions

20
main.tf
View File

@@ -1,23 +1,3 @@
#===============================================
# Create firefall for all
#===============================================
resource "google_compute_firewall" "firewall_vpn" {
name = "allow-zabbix"
# name of net
network = "default"
allow {
protocol = "tcp"
ports = [
"443", "80", "10050"
]
}
source_ranges = ["0.0.0.0/0"]
target_tags = ["${var.zabbix_tag}"]
}
#===============================================
# Create zabbix server
#===============================================