In this step, we will create a custom IAM policy that allows the iam:PassRole action for the AWSGlueServiceRoleDefault role, then attach it to that role.
In the IAM console:

In the Specify permissions page:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "arn:aws:iam::AccountID:role/AWSGlueServiceRoleDefault"
}
]
}
Replace AccountID in the Resource ARN with your actual 12-digit AWS Account ID. You can find your Account ID in the top-right corner of the AWS Console. Example: arn:aws:iam::123456789012:role/AWSGlueServiceRoleDefault
Scroll down and verify no errors:

In the Review and create page:
AllowPassRoleToGlueServiceRole
Scroll down to review:

Policy AllowPassRoleToGlueServiceRole has been created successfully

Now we need to attach this policy to the AWSGlueServiceRoleDefault role:
AWSGlueServiceRoleDefault
In the role details page:

In the Attach policy page:
AllowPassRoleToGlueServiceRole
The policy has been successfully attached to the role. The AWSGlueServiceRoleDefault role now has 3 policies:
