Change value of AWS Glue Job Parameter

Viewed 20

Is there a way that I can change the value of an AWS Glue job parameter in the job itself? Let's say I have a parameter with a key of --color and value of 'red':

args = getResolvedOptions(sys.argv, ['color'])
color = args['color']

The above code will return 'red' for the variable color.

How do I change this parameter so that the next time I run the job, the color parameter is blue?

1 Answers
Related