mirror of
https://github.com/ghndrx/tf-variable-demo.git
synced 2026-02-10 06:54:57 +00:00
modified firewall_rules and load_balancer
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
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"]
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
resource "google_compute_backend_service" "backend_service" {
|
resource "google_compute_backend_service" "backend_service" {
|
||||||
name = "backend-service"
|
name = "backend-service"
|
||||||
project = var.project_id
|
project = var.project_id
|
||||||
# region = var.region
|
#region = var.region
|
||||||
|
|
||||||
backend {
|
backend {
|
||||||
group = var.backend_instance_group_self_link
|
group = var.backend_instance_group_self_link
|
||||||
|
|||||||
Reference in New Issue
Block a user