Add Parameter To AWS Glue Job

Read parameter value in AWS Glue job script

Create parameter named “test” as follow, remember to give – – before parameter name

In the job script, refer the parameter as below

args = getResolvedOptions(sys.argv, [‘TempDir’,’JOB_NAME’,’test’])

print(“The test param value is: “, args[‘test’])

Now run the the job. once it gets completed, click the Logs link to check for AWS Glue parameter job value printed. It will navigate you to Cloud watch logs section.

Leave a Reply

Your email address will not be published. Required fields are marked *