From a66d60af9519b9625c31823398c3e457313c3cd7 Mon Sep 17 00:00:00 2001 From: frosforever Date: Thu, 3 Oct 2024 12:04:41 -0400 Subject: [PATCH] Update batch_compute_environment update_policy job_execution_timeout_minutes to validate range between 1 and 360 --- internal/service/batch/compute_environment.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/service/batch/compute_environment.go b/internal/service/batch/compute_environment.go index 3deee11ec091..288ba4685b7c 100644 --- a/internal/service/batch/compute_environment.go +++ b/internal/service/batch/compute_environment.go @@ -263,8 +263,9 @@ func resourceComputeEnvironment() *schema.Resource { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "job_execution_timeout_minutes": { - Type: schema.TypeInt, - Required: true, + Type: schema.TypeInt, + Required: true, + ValidateFunc: validation.IntBetween(1, 360), }, "terminate_jobs_on_update": { Type: schema.TypeBool,