From 4232c2f99182367079e201dcab0526b51115ac1d Mon Sep 17 00:00:00 2001 From: John Ajera <37360952+jajera@users.noreply.github.com> Date: Sat, 26 Jul 2025 04:25:04 +0000 Subject: [PATCH] fix: remove targets validation handles situation to make the module flexible when its not required --- variables.tf | 5 ----- 1 file changed, 5 deletions(-) diff --git a/variables.tf b/variables.tf index 87e1246..28f301c 100644 --- a/variables.tf +++ b/variables.tf @@ -185,11 +185,6 @@ variable "targets" { description = "List of targets (EC2 instance IDs, IPs, Lambda ARNs, or ALB ARNs)" type = list(string) default = [] - - validation { - condition = var.target_type == "ip" || length(var.targets) > 0 - error_message = "At least one target must be specified unless target_type is 'ip'." - } } variable "target_type" {