This commit is contained in:
gregory hendrickson
2023-03-15 13:27:48 -07:00
parent 3cd57983ff
commit 3dadbf2d9e
2 changed files with 19 additions and 16 deletions

View File

@@ -40,3 +40,22 @@ resource "google_compute_region_instance_group_manager_rolling_update" "fancy_fe
max_surge = 1
max_unavailable = 1
}
# ENABLE CDN
resource "google_compute_backend_service" "fancy_fe_frontend" {
name = "fancy-fe-frontend"
port_name = "frontend"
protocol = "HTTP"
load_balancing_scheme = "INTERNAL_SELF_MANAGED"
backend {
group = google_compute_instance_group_manager.fancy_fe_mig.self_link
}
health_checks = [
google_compute_http_health_check.fancy_fe_frontend_hc.self_link
]
enable_cdn = true
}

View File

@@ -79,20 +79,4 @@ resource "google_compute_global_forwarding_rule" "fancy_http_rule" {
# ENABLE CDN
resource "google_compute_backend_service" "fancy_fe_frontend" {
name = "fancy-fe-frontend"
port_name = "frontend"
protocol = "HTTP"
load_balancing_scheme = "INTERNAL_SELF_MANAGED"
backend {
group = google_compute_instance_group_manager.fancy_fe_mig.self_link
}
health_checks = [
google_compute_http_health_check.fancy_fe_frontend_hc.self_link
]
enable_cdn = true
}