diff --git a/.changelog/36458.txt b/.changelog/36458.txt new file mode 100644 index 000000000000..f0dfc59b5497 --- /dev/null +++ b/.changelog/36458.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_glue_job: Adjust `number_of_workers` minimum value to `1` +``` diff --git a/internal/service/glue/job.go b/internal/service/glue/job.go index 068f692f38ac..139ba63a898e 100644 --- a/internal/service/glue/job.go +++ b/internal/service/glue/job.go @@ -154,7 +154,7 @@ func ResourceJob() *schema.Resource { Type: schema.TypeInt, Optional: true, ConflictsWith: []string{"max_capacity"}, - ValidateFunc: validation.IntAtLeast(2), + ValidateFunc: validation.IntAtLeast(1), }, "role_arn": { Type: schema.TypeString, diff --git a/internal/service/glue/job_test.go b/internal/service/glue/job_test.go index 84b17e7a55b7..0059ce5276a8 100644 --- a/internal/service/glue/job_test.go +++ b/internal/service/glue/job_test.go @@ -976,7 +976,7 @@ func testAccJobConfig_versionNumberOfWorkers(rName, glueVersion string) string { resource "aws_glue_job" "test" { glue_version = %[1]q name = %[2]q - number_of_workers = 2 + number_of_workers = 1 role_arn = aws_iam_role.test.arn worker_type = "Standard" @@ -1102,7 +1102,7 @@ func testAccJobConfig_tags1(rName, tagKey1, tagValue1 string) string { return acctest.ConfigCompose(testAccJobConfig_base(rName), fmt.Sprintf(` resource "aws_glue_job" "test" { name = %[1]q - number_of_workers = 2 + number_of_workers = 1 role_arn = aws_iam_role.test.arn worker_type = "Standard" @@ -1123,7 +1123,7 @@ func testAccJobConfig_tags2(rName, tagKey1, tagValue1, tagKey2, tagValue2 string return acctest.ConfigCompose(testAccJobConfig_base(rName), fmt.Sprintf(` resource "aws_glue_job" "test" { name = %[1]q - number_of_workers = 2 + number_of_workers = 1 role_arn = aws_iam_role.test.arn worker_type = "Standard"