C4W4 assignment 2 error start job

When I start job after run all terraform apply sucessfully I get following error:
An error occurred (AccessDeniedException) when calling the StartJobRun operation: User: arn:aws:sts::504676106734:assumed-role/voclabs/user4046140=wvngltkwcpvy is not authorized to perform: glue:StartJobRun on resource: arn:aws:glue:us-east-1:504676106734:job/glue_api_users_extract_job because no identity-based policy allows the glue:StartJobRun action

Hello @Tan_Quoc_Bao_Nguyen,

When you run the glue job, you have to use the actual name of the glue job not the name of the output variable.

So one of the outputs you got:
glue_api_users_extract_job = “de-c4w4a2-api-users-extract-job”

When you run the glue job, the command should be:
aws glue start-job-run --job-name de-c4w4a2-api-users-extract-job | jq -r ‘.JobRunId’

Thank you

1 Like