Skip to content

Commit c793ed6

Browse files
committed
adding cdn activation option
1 parent 31510cc commit c793ed6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ resource "google_compute_backend_service" "default" {
8585
backend = ["${var.backends["${count.index}"]}"]
8686
health_checks = ["${element(google_compute_http_health_check.default.*.self_link, count.index)}"]
8787
security_policy = "${var.security_policy}"
88+
enable_cdn = "${var.cdn}"
8889
}
8990

9091
resource "google_compute_http_health_check" "default" {

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,8 @@ variable security_policy {
9999
description = "The resource URL for the security policy to associate with the backend service"
100100
default = ""
101101
}
102+
103+
variable cdn {
104+
description = "Set to `true` to enable cdn on backend."
105+
default = "false"
106+
}

0 commit comments

Comments
 (0)