We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31510cc commit c793ed6Copy full SHA for c793ed6
main.tf
@@ -85,6 +85,7 @@ resource "google_compute_backend_service" "default" {
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}"
88
+ enable_cdn = "${var.cdn}"
89
}
90
91
resource "google_compute_http_health_check" "default" {
variables.tf
@@ -99,3 +99,8 @@ variable security_policy {
99
description = "The resource URL for the security policy to associate with the backend service"
100
default = ""
101
102
+
103
+variable cdn {
104
+ description = "Set to `true` to enable cdn on backend."
105
+ default = "false"
106
+}
0 commit comments