This is the doc: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-runs.html#aws-glue-api-jobs-runs-StartJobRun
I have a stepfunction, I want to use it to trigger an existing Glue job and run it, should I use startjobrun
or getjobrun
? My Glue job is created by Terraform, I've tried this (see this question: Glue job succeeded without StepFunction, but failed if it's kicked off by StepFunction) I used "Resource": "arn:aws:states:::glue:startJobRun.sync",
in stepfunction but the glue job will fail.
My question is for my case, since I've already have my glue job created, should I use "Resource": "arn:aws:states:::glue:getJobRun.sync",
in the step function? If so, how can I pass the runId
?(https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-runs.html#aws-glue-api-jobs-runs-GetJobRun)
RunId – Required: UTF-8 string, not less than 1 or more than 255 bytes long, matching the Single-line string pattern.
The ID of the job run.