From 68625feab13374a1b33113a8cb02f2be02307515 Mon Sep 17 00:00:00 2001 From: badra001 Date: Fri, 22 Nov 2024 17:38:49 -0500 Subject: [PATCH] change to list --- tags/tags.finops.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tags/tags.finops.tf b/tags/tags.finops.tf index dc8b71d..ff7fea1 100644 --- a/tags/tags.finops.tf +++ b/tags/tags.finops.tf @@ -24,11 +24,11 @@ resource "terraform_data" "finops" { resource "terraform_data" "finops_roles" { count = length(local.finops_roles) > 0 ? 1 : 0 - input = local.finops_roles + input = tolist(local.finops_roles) lifecycle { precondition { - condition = !anytrue([for r in local.finops_roles: length(regexall("[^0-9a-z_]",r)) > 0 ]) + condition = !anytrue([for r in tolist(local.finops_roles): length(regexall("[^0-9a-z_]",r)) > 0 ]) error_message = "finops.roles fields can contain only 0-9, a-z, and underscore." } }