When attempting to run an AWS Glue job using the POJO job type in AutoSys, the job fails with either an Invalid Json error or a 403 Forbidden error.
This typically occurs due to incorrect character escaping in the JIL definition or insufficient permissions in the AWS IAM Trust Policy.
Scenario 1: Invalid Json Error If the job fails with java.lang.reflect.InvocationTargetException or Invalid Json, it is often because backslashes are being treated as literal characters.
glue.Payload value in double quotes.:) and commas (,).\").Correct JIL Snippet:
j2ee_parameter: glue.Payload="{\"JobName\":\"your_glue_job\",\"Arguments\":{\"--dbname\":\"your_db\"}}"
Scenario 2: 403 Forbidden Error If the job fails with Unable to make AWS call for AssumeRole: 403 - Forbidden, the IAM Role being assumed does not trust the IAM User providing the credentials.
AccessKey in your JIL.Principal block of the Trust Policy:For more information on job definitions, see the .
If you require further assistance, please see .