How to update the value in AWS Glue Job parameter via CLI?

0

Hi Everyone,

I want to change the Job parameters in AWS Glue each time based on my requirement, I need to automate this. I do have a text file which consists of the parameters list. Is there anyway to automate this process via CLI or any custom script to process the parameters one by one.

Thanks, Krishna

1 Answer
0

Hello Krishna,

It's totally possible to pass parameter to a glue job in an automated way. You can do it in two ways: updating the job definition or passing parameters when starting a job run, which one you will use depends on your solution.

You can accomplish this by using the available aws sdk for your programming language of choice or by invoking the API through CLI. I will leave here the documentation for the CLI and the boto3 (aws sdk for python) module, for both the update job and start job run calls:

bot3.Glue.Client.update_job

boto3.Glue.Client.start_job_run

aws glue update-job

aws glue start-job-run

The AWS SDK is avalailable on other programming languages too, check here for all available languages: https://aws.amazon.com/developer/tools/

It seems to me, based on your question, that what you want is the start job run, to start the job each time with a different parameter from a lists of values.

Hope this helps you. Let me know if you have any further questions!

Have a nice day.

answered 8 months ago
  • Thanks for the update @Arthur Lopes, I will check from my end.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions