View a markdown version of this page

Permissions required for data lineage - AWS Glue

Permissions required for data lineage

AWS Glue Data Catalog Lineage uses AWS Identity and Access Management (IAM) permissions. This page describes the permissions to send lineage, view lineage, and query the lineage system table.

Permissions to send lineage

The role that sends a lineage event needs glue:PostLineageEvent. If the role doesn't have it, the job runs normally but doesn't send lineage, and the driver log shows a warning.

Deployment option Role that sends lineage events
Amazon EMR on EC2 The runtime role for steps that use one. For steps without a runtime role, the cluster's EC2 instance profile. Jobs with fine-grained access control always use the runtime role.
Amazon EMR Serverless The job runtime role that you pass in --execution-role-arn, including jobs with fine-grained access control.
Amazon EMR on EKS The job execution role. For jobs with fine-grained access control, the query engine role (queryEngineRoleArn in your security configuration).
AWS Glue The job's IAM role. The AWSGlueServiceRole managed policy includes the permission.
AWS Glue crawler (Snowflake, Databricks) The crawler's IAM role.
Your code or OpenLineage client The credentials that the client uses.

glue:PostLineageEvent doesn't support resource-level permissions. Use "Resource": "*".

Permissions to view lineage

To view lineage in the AWS Glue console or with the API, a principal needs glue:GetLineageNode.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "ViewLineage", "Effect": "Allow", "Action": ["glue:GetLineageNode"], "Resource": "*" } ] }
Important

A principal with glue:GetLineageNode can view any lineage node in the AWS account, with all of its details, including column lineage and query text. Grant this permission only to principals that should see lineage for the whole account. For details, see Data lineage authorization and data access.

Permissions to turn on the lineage system table

Action Purpose
glue:PutDataCatalogExportConfiguration Turn the lineage system table on or off
glue:GetDataCatalogExportConfiguration Read the current setting
s3tables:CreateTableBucket Create the aws-catalog table bucket
s3tables:GetTableBucket Check for an existing bucket
s3tables:CreateTable Create the table in the aws-catalog table bucket
s3tables:PutTableBucketEncryption Set the encryption configuration on the aws-catalog table bucket
s3tables:PutTableBucketPolicy Set the resource policy on the aws-catalog table bucket
kms:DescribeKey Describe the key when you use a customer managed key

Permissions to query the lineage system table

Querying principals need Lake Formation SELECT on the lineage namespace or the events table, plus Amazon S3 Tables and Data Catalog read permissions. For instructions on granting read access, including the full policy, see Grant read access.

Stop a role from sending lineage

To stop specific roles, or a whole organization, from sending lineage, deny glue:PostLineageEvent. For example, attach this statement to a role, or use it in a service control policy (SCP):

{ "Sid": "DenyLineageEmission", "Effect": "Deny", "Action": "glue:PostLineageEvent", "Resource": "*" }

Jobs keep running, and no lineage is sent for them. For other ways to turn off capture, see Turning lineage capture on or off.