From de73020bf653789dcd2d2af38ad13c629c4c2e34 Mon Sep 17 00:00:00 2001 From: Victoria Mann Date: Sun, 26 Nov 2023 16:00:01 -0600 Subject: [PATCH] extend hosted_zone_id verification --- variable.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variable.tf b/variable.tf index d798a75..8c3e75a 100644 --- a/variable.tf +++ b/variable.tf @@ -14,8 +14,8 @@ variable "hosted_zone_id" { description = "The ID of the hosted zone in which to create the record." validation { - condition = length(regexall("^[A-Z0-9]{14}$", var.hosted_zone_id)) == 1 - error_message = "The hosted_zone_id must be a valid ID in the format of a 14-character string containing only uppercase letters and digits." + condition = length(regexall("^[A-Z0-9]{10,20}$", var.hosted_zone_id)) == 1 + error_message = "The hosted_zone_id must be a valid ID in the format of a string between 10 and 20 characters, containing only uppercase letters and digits." } }