Skip to content

Commit b0e83cd

Browse files
authored
fix(google_fastly_waf): Allowing force domains update on TLS subscription (#379)
1 parent 49dfc61 commit b0e83cd

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

google_fastly_waf/certificate.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ resource "fastly_tls_subscription" "fastly" {
22
count = length(var.subscription_domains) > 0 ? 1 : 0
33
domains = [for domain in var.subscription_domains : domain.name]
44
certificate_authority = "lets-encrypt"
5+
force_update = var.subscription_domains_force_update
56
}

google_fastly_waf/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ variable "subscription_domains" {
5353
default = []
5454
}
5555

56+
variable "subscription_domains_force_update" {
57+
default = false
58+
description = "Force update the subscription even if it has active domains. Warning: this can disable production traffic if used incorrectly."
59+
type = bool
60+
}
61+
5662
variable "response_objects" {
5763
description = "List of synthetic response objects to attach to the Fastly service."
5864
type = list(object({

0 commit comments

Comments
 (0)