diff --git a/castai/resource_autoscaler.go b/castai/resource_autoscaler.go index 46647708..7a91b458 100644 --- a/castai/resource_autoscaler.go +++ b/castai/resource_autoscaler.go @@ -269,14 +269,14 @@ func resourceAutoscaler() *schema.Resource { Optional: true, Default: 1, Description: "defines the minimum allowed amount of CPUs in the whole cluster.", - ValidateDiagFunc: validation.ToDiagFunc(validation.IntBetween(1, 20)), + ValidateDiagFunc: validation.ToDiagFunc(validation.IntAtLeast(1)), }, FieldMaxCores: { Type: schema.TypeInt, Optional: true, Default: 20, Description: "defines the maximum allowed amount of vCPUs in the whole cluster.", - ValidateDiagFunc: validation.ToDiagFunc(validation.IntBetween(2, 1000)), + ValidateDiagFunc: validation.ToDiagFunc(validation.IntAtLeast(2)), }, }, },