AWSGlueDataBrewServiceRole

Last Modified

Mar 12, 2026

March 12, 2026 at 09:26 PM UTC

Version

v4

Total Versions

4

Created

Mar 20, 2024

Actions

24

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can read secrets

    Reads Glue connection passwords, on any resource with no condition.

    glue:GetConnection

    Use with caution: Where the holder needs only some secrets, write your own policy scoped to their ARNs or tags, and limit decryption in the KMS key policies.

IAM Access Analyzer (1)

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:ResourceTag/aws-glue-service-resource in the condition block of StringLike with {aws:ResourceTag/aws-glue-service-resource: false} to ensure better enforcement of the condition. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "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-*"
        }
      ]
    },
    "VersionId": "v4",
    "IsDefaultVersion": true,
    "CreateDate": "2024-03-20T23:28:52+00:00"
  }
}

Version History (7 recorded)

Raw history

AWSGlueDataBrewServiceRole - Policy Version v4

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

1b18321

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Mar 21, 2024

8755ac4

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 10, 2022

07d68eb

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 18, 2021

83c5f1f

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Dec 4, 2020

6242287