Skip to content

Commit e8831bf

Browse files
committed
removed enabled flag from ssl validation
1 parent f60e8d5 commit e8831bf

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

  • infrastructure/modules/application-insights-availability-test

infrastructure/modules/application-insights-availability-test/variables.tf

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,8 @@ variable "headers" {
7272
}
7373

7474
variable "ssl_validation" {
75-
description = <<EOT
76-
The SSL validation settings for the standard web test.
77-
78-
Set `enabled = false` to omit the SSL validation block entirely.
79-
If you want to validate response body text, set content's match to a non-null string.
80-
EOT
75+
description = "The SSL validation settings for the standard web test."
8176
type = object({
82-
enabled = optional(bool, false)
8377
expected_status_code = optional(number, null)
8478
ssl_check_enabled = optional(bool, true)
8579
ssl_cert_remaining_lifetime = optional(number, null)
@@ -105,15 +99,6 @@ EOT
10599
error_message = "The SSL certificate remaining lifetime must be null or an integer between 1 and 365."
106100
}
107101

108-
validation {
109-
condition = (
110-
var.ssl_validation == null ||
111-
try(var.ssl_validation.enabled, false) == false ||
112-
true
113-
)
114-
error_message = "When enabled = false, other SSL fields are ignored."
115-
}
116-
117102
default = null
118103
nullable = true
119104
}

0 commit comments

Comments
 (0)