From 49d21171ce8036dbeddae04bcdda5cb6a0caeb7b Mon Sep 17 00:00:00 2001 From: Tone Date: Mon, 25 Mar 2024 15:49:18 +0700 Subject: [PATCH] add support for G.4X and G.8X in glue_job.py (#2048) add support for G.4X and G.8X in glue_job.py SUMMARY according to https://aws.amazon.com/about-aws/whats-new/2023/05/aws-glue-large-instance-types-generally-available/ I added support for these 2 new instance types ISSUE TYPE Feature Pull Request COMPONENT NAME glue_job Reviewed-by: Mark Chappell Reviewed-by: Alina Buzachis (cherry picked from commit a397c4c324c7c705648a9a056a1e60f5de6c93f4) --- .../fragments/2048-add-new-instance-types-in-gluejob.yaml | 2 ++ plugins/modules/glue_job.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/2048-add-new-instance-types-in-gluejob.yaml diff --git a/changelogs/fragments/2048-add-new-instance-types-in-gluejob.yaml b/changelogs/fragments/2048-add-new-instance-types-in-gluejob.yaml new file mode 100644 index 00000000000..49119a5da37 --- /dev/null +++ b/changelogs/fragments/2048-add-new-instance-types-in-gluejob.yaml @@ -0,0 +1,2 @@ +minor_changes: + - glue_job - add support for 2 new instance types which are G.4X and G.8X (https://github.com/ansible-collections/community.aws/pull/2048). diff --git a/plugins/modules/glue_job.py b/plugins/modules/glue_job.py index 2567799757e..10ad102e340 100644 --- a/plugins/modules/glue_job.py +++ b/plugins/modules/glue_job.py @@ -95,7 +95,8 @@ worker_type: description: - The type of predefined worker that is allocated when a job runs. - choices: [ 'Standard', 'G.1X', 'G.2X' ] + - Support for instance types C(G.4X( and C(G.8X) was added in community.aws release 7.2.0. + choices: [ 'Standard', 'G.1X', 'G.2X', 'G.4X', 'G.8X' ] type: str version_added: 1.5.0 notes: @@ -465,7 +466,7 @@ def main(): state=dict(required=True, choices=["present", "absent"], type="str"), tags=dict(type="dict", aliases=["resource_tags"]), timeout=dict(type="int"), - worker_type=dict(choices=["Standard", "G.1X", "G.2X"], type="str"), + worker_type=dict(choices=["Standard", "G.1X", "G.2X", "G.4X", "G.8X"], type="str"), ) module = AnsibleAWSModule(