From 3101f444ff99ea3ff5d115799e55fb78a8c3038a Mon Sep 17 00:00:00 2001 From: lolorol Date: Mon, 18 Sep 2023 09:05:19 +0000 Subject: [PATCH] Fix short_term_retention_days as optional --- .../mssql_managed_database_v1/var/settings/srtdays.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/databases/mssql_managed_database_v1/var/settings/srtdays.tf b/modules/databases/mssql_managed_database_v1/var/settings/srtdays.tf index e3c46fdf22..3fad8e7f80 100644 --- a/modules/databases/mssql_managed_database_v1/var/settings/srtdays.tf +++ b/modules/databases/mssql_managed_database_v1/var/settings/srtdays.tf @@ -1,9 +1,9 @@ variable "short_term_retention_days" { - description = "short_term_retention_days .The backup retention period in days. This is how many days Point-in-Time Restore will be supported. Value must be atleast 1" - nullable = false + description = "short_term_retention_days (Optional) .The backup retention period in days. This is how many days Point-in-Time Restore will be supported. Value must be atleast 1" + nullable = true validation { - condition = var.short_term_retention_days >= 1 + condition = var.short_term_retention_day == null ? true : var.short_term_retention_days >= 1 error_message = format("Not supported value: '%s'. \nAdjust your configuration file with a supported value of 1 or more days", var.short_term_retention_days) }