AWS Security ChangesHomeSearch

AWS glue documentation change

Service: glue · 2025-06-25 · Documentation low

File: glue/latest/dg/example_glue_CreateJob_section.md

Summary

Added PowerShell V5 example for creating a Glue ETL job with parameters and execution properties.

Security assessment

The example demonstrates job creation syntax without addressing security controls beyond standard IAM role references. No new security features or vulnerability mitigations are introduced.

Diff

diff --git a/glue/latest/dg/example_glue_CreateJob_section.md b/glue/latest/dg/example_glue_CreateJob_section.md
index daba5ff3d..7269b891f 100644
--- a//glue/latest/dg/example_glue_CreateJob_section.md
+++ b//glue/latest/dg/example_glue_CreateJob_section.md
@@ -393,0 +394,47 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a new job in AWS Glue. The command name value is always`glueetl`. AWS Glue supports running job scripts written in Python or Scala. In this example, the job script (MyTestGlueJob.py) is written in Python. Python parameters are specified in the `$DefArgs` variable, and then passed to the PowerShell command in the `DefaultArguments` parameter, which accepts a hashtable. The parameters in the `$JobParams` variable come from the CreateJob API, documented in the Jobs (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html) topic of the AWS Glue API reference.**
+    
+    
+    $Command = New-Object Amazon.Glue.Model.JobCommand
+    $Command.Name = 'glueetl'
+    $Command.ScriptLocation = 's3://amzn-s3-demo-source-bucket/admin/MyTestGlueJob.py'
+    $Command
+    
+    $Source = "source_test_table"
+    $Target = "target_test_table"
+    $Connections = $Source, $Target
+    
+    $DefArgs = @{
+         '--TempDir' = 's3://amzn-s3-demo-bucket/admin'
+         '--job-bookmark-option' = 'job-bookmark-disable'
+         '--job-language' = 'python'
+         }
+    $DefArgs
+    
+    $ExecutionProp = New-Object Amazon.Glue.Model.ExecutionProperty
+    $ExecutionProp.MaxConcurrentRuns = 1
+    $ExecutionProp
+    
+    $JobParams = @{
+        "AllocatedCapacity"    = "5"
+        "Command"              = $Command
+        "Connections_Connection" = $Connections
+        "DefaultArguments"  = $DefArgs
+        "Description"       = "This is a test"
+        "ExecutionProperty" = $ExecutionProp
+        "MaxRetries"        = "1"
+        "Name"              = "MyOregonTestGlueJob"
+        "Role"              = "Amazon-GlueServiceRoleForSSM"
+        "Timeout"           = "20"
+         }
+    
+    New-GlueJob @JobParams
+    
+
+  * For API details, see [CreateJob](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+