- Newest
- Most votes
- Most comments
While the AWS Glue job queuing feature is indeed available and can be enabled through the AWS Management Console, it appears that the CloudFormation template does not yet have a direct parameter for enabling this feature.
However, there are alternative approaches you can consider for your automated pipeline:
-
Use AWS CLI or SDK: After creating the Glue job through CloudFormation, you can use the AWS CLI or SDK to update the job and enable job queuing. This can be done by calling the UpdateJob API and setting the jobRunQueuingEnabled parameter to true.
-
Custom Resource: You can create a custom resource in your CloudFormation template that uses a Lambda function to enable job queuing after the job is created. This Lambda function would use the AWS SDK to call the UpdateJob API and set the jobRunQueuingEnabled parameter.
-
Systems Manager Automation: You could use AWS Systems Manager Automation in conjunction with your CloudFormation template to run a script that enables job queuing after the job is created.
-
CloudFormation Hook: Implement a CloudFormation hook that automatically enables job queuing for newly created Glue jobs.
As for configuring other job-related parameters in CloudFormation, you can still set various properties like MaxRetries, which specifies the maximum number of times to retry a job after a JobRun fails. You can also configure other job properties such as AllocatedCapacity, Command, Connections, DefaultArguments, and more when creating a Glue job through CloudFormation.
Remember to check the AWS documentation regularly, as CloudFormation templates are frequently updated to include new features and parameters. The ability to directly set jobRunQueuingEnabled in CloudFormation may be added in a future update.
Sources
AWS Glue now provides job queuing - AWS
AWS::Glue::Job - AWS CloudFormation
Hello.
I answered the question below, but if you want to change it using AWS CLI, try changing the command as follows.
https://repost.aws/ja/questions/QUElUIgnGXSo69swguAys_dA/enable-glue-job-queuing-using-aws-cli-command
aws glue update-job --job-name test --job-update '{"JobRunQueuingEnabled": true, "Role": "arn:aws:iam::111111111111:role/glue-test", "Command":{"Name": "glueetl", "ScriptLocation": "s3://aws-glue-assets-111111111111-ap-northeast-1/scripts/test.py", "PythonVersion": "3"}}'
Relevant content
- asked 2 years ago
- asked 11 days ago
- asked 5 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
Thanks for the response, that was helpful. i'm now trying to use AWS CLI to set the jobRunQueuing param after job is created, however, below is not working :
aws glue update-job --job-name my-job --job-update '{"JobRunQueuingEnabled": true}'
could you please suggest, what would be the right command to do that via CLI, tried looking at official documentation, but couldn't find a specific example of update specific param