Skip to main content
IAM Policy Map

AWSGlueDataBrewServiceRole

OperatorService roleActivePermissions reviewedShow on mapCompare

Summary

This policy grants permission to glue to perform action on user's glue data catalog, this policy also provides permission to ec2 actions to allow glue to create ENI to connect to resources in the VPC, also allow glue to access registered data in lakeformation and permission to access user's cloudwatch

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole
Default version
v4
Created
Last edited
Services
ec2, glue, lakeformation, logs, s3, secretsmanager

Control-plane actions (22)

By access level: 6 List, 8 Read, 2 Tagging, 6 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC210 of 8346 List, 2 Tagging, 2 Write; 3 restricted, 3 conditionalec2:CreateNetworkInterface, ec2:CreateTags, ec2:DeleteNetworkInterface, ec2:DeleteTags, ec2:DescribeNetworkInterfaces, ec2:DescribeRouteTables, ec2:DescribeSecurityGroups, ec2:DescribeSubnets, ec2:DescribeVpcAttribute, ec2:DescribeVpcEndpoints
Glue7 of 3067 Read; 0 restricted, 0 conditionalglue:BatchGetCustomEntityTypes, glue:GetConnection, glue:GetCustomEntityType, glue:GetDatabases, glue:GetPartitions, glue:GetTable, glue:GetTables
Lake Formation1 of 681 Write; 0 restricted, 0 conditionallakeformation:GetDataAccess
CloudWatch Logs3 of 1333 Write; 3 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents
Secrets Manager1 of 271 Read; 1 restricted, 0 conditionalsecretsmanager:GetSecretValue
EC2: 10 actions
  • ec2:CreateNetworkInterface (Write)
  • ec2:CreateTags (Tagging)
  • ec2:DeleteNetworkInterface (Write)
  • ec2:DeleteTags (Tagging)
  • ec2:DescribeNetworkInterfaces (List)
  • ec2:DescribeRouteTables (List)
  • ec2:DescribeSecurityGroups (List)
  • ec2:DescribeSubnets (List)
  • ec2:DescribeVpcAttribute (List)
  • ec2:DescribeVpcEndpoints (List)
Glue: 7 actions
  • glue:BatchGetCustomEntityTypes (Read)
  • glue:GetConnection (Read)
  • glue:GetCustomEntityType (Read)
  • glue:GetDatabases (Read)
  • glue:GetPartitions (Read)
  • glue:GetTable (Read)
  • glue:GetTables (Read)
Lake Formation: 1 actions
  • lakeformation:GetDataAccess (Write)
CloudWatch Logs: 3 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:PutLogEvents (Write)
Secrets Manager: 1 actions
  • secretsmanager:GetSecretValue (Read)

Data-plane actions (2)

By access level: 1 List, 1 Read.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
S32 of 251 List, 1 Read; 2 restricted, 0 conditionals3:GetObject, s3:ListBucket
S3: 2 actions
  • s3:GetObject (Read)
  • s3:ListBucket (List)

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants 8 write, tagging or permissions-management actions, short of full control of any service.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "GlueDataPermissions",
      "Effect": "Allow",
      "Action": [
        "glue:GetDatabases",
        "glue:GetPartitions",
        "glue:GetTable",
        "glue:GetTables",
        "glue:GetConnection"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "GluePIIPermissions",
      "Effect": "Allow",
      "Action": [
        "glue:BatchGetCustomEntityTypes",
        "glue:GetCustomEntityType"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "S3PublicDatasetAccess",
      "Effect": "Allow",
      "Action": [
        "s3:ListBucket",
        "s3:GetObject"
      ],
      "Resource": [
        "arn:aws:s3:::databrew-public-datasets-*"
      ]
    },
    {
      "Sid": "EC2NetworkingPermissions",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeVpcEndpoints",
        "ec2:DescribeRouteTables",
        "ec2:DescribeNetworkInterfaces",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeSubnets",
        "ec2:DescribeVpcAttribute",
        "ec2:CreateNetworkInterface"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "EC2DeleteGlueNetworkInterfacePermissions",
      "Effect": "Allow",
      "Action": "ec2:DeleteNetworkInterface",
      "Condition": {
        "StringLike": {
          "aws:ResourceTag/aws-glue-service-resource": "*"
        }
      },
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "EC2GlueTaggingPermissions",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateTags",
        "ec2:DeleteTags"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "aws-glue-service-resource"
          ]
        }
      },
      "Resource": [
        "arn:aws:ec2:*:*:network-interface/*",
        "arn:aws:ec2:*:*:security-group/*"
      ]
    },
    {
      "Sid": "GlueDatabrewLogGroupPermissions",
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogGroup",
        "logs:CreateLogStream",
        "logs:PutLogEvents"
      ],
      "Resource": [
        "arn:aws:logs:*:*:log-group:/aws-glue-databrew/*"
      ]
    },
    {
      "Sid": "LakeFormationPermissions",
      "Effect": "Allow",
      "Action": [
        "lakeformation:GetDataAccess"
      ],
      "Resource": "*"
    },
    {
      "Sid": "SecretsManagerPermissions",
      "Effect": "Allow",
      "Action": [
        "secretsmanager:GetSecretValue"
      ],
      "Resource": "arn:aws:secretsmanager:*:*:secret:databrew!default-*"
    }
  ]
}

Version history

Current version v4, edited by AWS on 2024-03-20. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

AWS CLI

aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole

Terraform

resource "aws_iam_role_policy_attachment" "service_role_awsgluedatabrewservicerole" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AWSGlueDataBrewServiceRole"),
);

Sources

Pending editorial review. No editorial sources are listed yet.