From c43ce47771c6d1cdbba9062cbe022e23ac3ed2c6 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Tue, 26 Apr 2022 15:26:58 +0800 Subject: [PATCH] feat: remove vpc cidr validation to support more requirements --- modules/vpc/variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/vpc/variables.tf b/modules/vpc/variables.tf index 29e7838..617873b 100644 --- a/modules/vpc/variables.tf +++ b/modules/vpc/variables.tf @@ -59,7 +59,7 @@ variable "tags" { variable "vpc_cidr" { validation { - condition = can(regex("^10\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}/16", var.vpc_cidr)) - error_message = "The vpc_cidr must be a 10.x.x.x range with /16 CIDR." + condition = can(regex("^10\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}/\\d{1,2}", var.vpc_cidr)) + error_message = "The vpc_cidr must be a 10.x.x.x range with CIDR." } }