Skip to content

Commit

Permalink
add policy condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kapas2004 committed Oct 17, 2024
1 parent 64118c9 commit e3aba4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ variable "tls_security_policy" {
default = "Policy-Min-TLS-1-2-2019-07"

validation {
condition = can(regex("^Policy-Min-TLS-1-0-2019-07|Policy-Min-TLS-1-2-2019-07$", var.tls_security_policy))
error_message = "TLS security policy should be 'Policy-Min-TLS-1-0-2019-07' or 'Policy-Min-TLS-1-2-2019-07'."
condition = can(regex("^Policy-Min-TLS-1-0-2019-07|Policy-Min-TLS-1-2-2019-07|Policy-Min-TLS-1-2-PFS-2023-10$", var.tls_security_policy))
error_message = "TLS security policy should be 'Policy-Min-TLS-1-0-2019-07, Policy-Min-TLS-1-2-2019-07, Policy-Min-TLS-1-2-PFS-2023-10'."
}
}

Expand Down

0 comments on commit e3aba4b

Please sign in to comment.