@@ -76,14 +76,15 @@ resource "google_compute_url_map" "default" {
76
76
}
77
77
78
78
resource "google_compute_backend_service" "default" {
79
- project = " ${ var . project } "
80
- count = " ${ length (var. backend_params )} "
81
- name = " ${ var . name } -backend-${ count . index } "
82
- port_name = " ${ element (split (" ," , element (var. backend_params , count. index )), 1 )} "
83
- protocol = " HTTP"
84
- timeout_sec = " ${ element (split (" ," , element (var. backend_params , count. index )), 3 )} "
85
- backend = [" ${ var . backends [" ${ count . index } " ]} " ]
86
- health_checks = [" ${ element (google_compute_http_health_check. default . * . self_link , count. index )} " ]
79
+ project = " ${ var . project } "
80
+ count = " ${ length (var. backend_params )} "
81
+ name = " ${ var . name } -backend-${ count . index } "
82
+ port_name = " ${ element (split (" ," , element (var. backend_params , count. index )), 1 )} "
83
+ protocol = " HTTP"
84
+ timeout_sec = " ${ element (split (" ," , element (var. backend_params , count. index )), 3 )} "
85
+ backend = [" ${ var . backends [" ${ count . index } " ]} " ]
86
+ health_checks = [" ${ element (google_compute_http_health_check. default . * . self_link , count. index )} " ]
87
+ security_policy = " ${ var . security_policy } "
87
88
}
88
89
89
90
resource "google_compute_http_health_check" "default" {
0 commit comments