infctl-cli/gcloud/tf/firewall.tf

17 lines
296 B
Terraform
Raw Permalink Normal View History

// Firewall
// ----------------------------------
resource "google_compute_firewall" "allow_http" {
name = "allow-http"
network = "default"
allow {
protocol = "tcp"
ports = [
"80", "443" // http/https
]
}
source_ranges = ["0.0.0.0/0"]
target_tags = ["web"]
}