The job role, Lake Formation, VPC connections with ENIs and self-referencing security groups, secrets and encryption.
Glue never uses your credentials at run time: it assumes the IAM role on the job or crawler, so the role's trust policy must allow the glue.amazonaws.com service principal, and its permissions decide what the run can touch — S3 sources and targets, the Data Catalog, CloudWatch Logs, KMS keys, secrets.
The AWS managed policy `AWSGlueServiceRole` is the usual starting point; it does not grant access to your own data buckets, so you add a scoped S3 policy next to it. Whoever creates or starts the job also needs `iam:PassRole` on the role — Glue's console policies expect role names that begin with AWSGlueServiceRole, otherwise grant PassRole for your naming convention.
cat > trust.json <<'EOF'
{"Version": "2012-10-17",
"Statement": [{"Effect": "Allow",
"Principal": {"Service": "glue.amazonaws.com"},
"Action": "sts:AssumeRole"}]}
EOF
aws iam create-role --role-name AWSGlueServiceRole-curate \
--assume-role-policy-document file://trust.json
aws iam attach-role-policy --role-name AWSGlueServiceRole-curate \
--policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueServiceRoleReach the last step for the run summary: the key takeaways from this lesson.