Skip to content

Commit

Permalink
fix: update validation condition for ssl_profiles in variables.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
gareda committed Sep 28, 2024
1 parent d15c4fd commit d12a349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ variable "ssl_profiles" {
}

validation {
condition = alltrue([for policy in var.ssl_profiles : policy.cipher_suites != null && contains(["TLS_AES_128_GCM_SHA256", "TLS_AES_256_GCM_SHA384"], policy.cipher_suites) ? policy.policy_type == "CustomV2" : true])
condition = alltrue([for policy in var.ssl_profiles : policy.cipher_suites != null ? contains(["TLS_AES_128_GCM_SHA256", "TLS_AES_256_GCM_SHA384"], policy.cipher_suites) ? policy.policy_type == "CustomV2" : true : true])
error_message = "The cipher_suites TLS_AES_128_GCM_SHA256 and TLS_AES_256_GCM_SHA384 are only supported for CustomV2 policies."
}
}
Expand Down

0 comments on commit d12a349

Please sign in to comment.