diff --git a/pkg/iac/terraform/block.go b/pkg/iac/terraform/block.go index 4781bc6f4b74..dd6d8446c124 100644 --- a/pkg/iac/terraform/block.go +++ b/pkg/iac/terraform/block.go @@ -691,10 +691,6 @@ func (b *Block) validateForEach() (cty.Value, error) { return cty.NilVal, fmt.Errorf("cannot use a %s value in for_each. An iterable collection is required", forEachVal.GoString()) } - if forEachVal.IsNull() || !forEachVal.IsKnown() { - return cty.NilVal, errors.New("cannot use a null or unknown value in for_each") - } - return forEachVal, nil }