mirror of
https://github.com/ghndrx/tf-variable-demo.git
synced 2026-02-10 06:54:57 +00:00
14 lines
251 B
HCL
14 lines
251 B
HCL
resource "google_compute_firewall" "allow_http" {
|
|
name = "allow-http"
|
|
project = var.project_id
|
|
network = "default"
|
|
|
|
allow {
|
|
protocol = "tcp"
|
|
ports = ["80"]
|
|
}
|
|
|
|
target_tags = ["http-server"]
|
|
source_ranges = ["0.0.0.0/0"]
|
|
}
|