Skip to main content
IAM Policy Map

AwsGlueSessionUserRestrictedNotebookServiceRole

OperatorService roleActivePermissions reviewedShow on mapCompare

Summary

Provides full access to all AWS Glue resources except for sessions. Allows users to create and use only the notebook sessions that are associated with the user. This policy also includes other permissions needed by AWS Glue to manage Glue resources in other AWS services.

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

Identity

ARN
arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedNotebookServiceRole
Default version
v2
Created
Last edited
Services
ec2, glue, logs, s3

Control-plane actions (312)

By access level: 27 List, 36 Permissions management, 93 Read, 4 Tagging, 152 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC22 of 8342 Tagging; 2 restricted, 2 conditionalec2:CreateTags, ec2:DeleteTags
GlueAll 306 actions (see the Glue page)27 List, 36 Permissions management, 93 Read, 2 Tagging, 148 Write; 305 restricted, 0 conditionalglue:*, glue:CancelStatement, glue:CreateSession, glue:DeleteSession, glue:GetSession, glue:GetStatement, glue:ListSessions, glue:ListStatements, glue:RunStatement, glue:StopSession, glue:TagResource
CloudWatch Logs3 of 1333 Write; 3 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents
S31 of 1551 Write; 1 restricted, 0 conditionals3:CreateBucket
EC2: 2 actions
  • ec2:CreateTags (Tagging)
  • ec2:DeleteTags (Tagging)
CloudWatch Logs: 3 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:PutLogEvents (Write)
S3: 1 actions
  • s3:CreateBucket (Write)

Data-plane actions (3)

By access level: 1 Read, 2 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
S33 of 251 Read, 2 Write; 3 restricted, 0 conditionals3:DeleteObject, s3:GetObject, s3:PutObject
S3: 3 actions
  • s3:DeleteObject (Write)
  • s3:GetObject (Read)
  • s3:PutObject (Write)

Excluded and conditional actions

  • glue:UntagResource (deny-conditional, statement 5): 1 matching actions
  • tag:TagResources (deny-conditional, statement 5): 1 matching actions
  • tag:UntagResources (deny-conditional, statement 5): 1 matching actions

Resource scope and attachment

Resource scope across granted actions: mixed.

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

Why this tier

  • Grants 194 write, tagging or permissions-management actions, short of full control of any service.
  • Grants data-plane write actions on a data store, but only for scoped resources or under conditions.

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": [
    {
      "Effect": "Allow",
      "Action": "glue:*",
      "Resource": [
        "arn:aws:glue:*:*:catalog/*",
        "arn:aws:glue:*:*:database/*",
        "arn:aws:glue:*:*:table/*",
        "arn:aws:glue:*:*:tableVersion/*",
        "arn:aws:glue:*:*:connection/*",
        "arn:aws:glue:*:*:userDefinedFunction/*",
        "arn:aws:glue:*:*:devEndpoint/*",
        "arn:aws:glue:*:*:job/*",
        "arn:aws:glue:*:*:trigger/*",
        "arn:aws:glue:*:*:crawler/*",
        "arn:aws:glue:*:*:workflow/*",
        "arn:aws:glue:*:*:mlTransform/*",
        "arn:aws:glue:*:*:registry/*",
        "arn:aws:glue:*:*:schema/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "glue:CreateSession"
      ],
      "Resource": [
        "arn:aws:glue:*:*:session/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/owner": "${aws:PrincipalTag/owner}"
        },
        "ForAnyValue:StringEquals": {
          "aws:TagKeys": [
            "owner"
          ]
        }
      }
    },
    {
      "Sid": "AllowGlueTaggingAction",
      "Effect": "Allow",
      "Action": [
        "glue:TagResource"
      ],
      "Resource": "arn:aws:glue:*:*:session/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/owner": "${aws:PrincipalTag/owner}",
          "aws:RequestTag/owner": "${aws:PrincipalTag/owner}"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "glue:RunStatement",
        "glue:GetStatement",
        "glue:ListStatements",
        "glue:CancelStatement",
        "glue:StopSession",
        "glue:DeleteSession",
        "glue:GetSession"
      ],
      "Resource": [
        "arn:aws:glue:*:*:session/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/owner": "${aws:PrincipalTag/owner}"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "glue:ListSessions"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Effect": "Deny",
      "Action": [
        "glue:UntagResource",
        "tag:TagResources",
        "tag:UntagResources"
      ],
      "Resource": [
        "arn:aws:glue:*:*:session/*"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:TagKeys": [
            "owner"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:CreateBucket"
      ],
      "Resource": [
        "arn:aws:s3:::aws-glue-*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject"
      ],
      "Resource": [
        "arn:aws:s3:::aws-glue-*/*",
        "arn:aws:s3:::*/*aws-glue-*/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject"
      ],
      "Resource": [
        "arn:aws:s3:::crawler-public*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogGroup",
        "logs:CreateLogStream",
        "logs:PutLogEvents"
      ],
      "Resource": [
        "arn:aws:logs:*:*:/aws-glue/*"
      ]
    },
    {
      "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/*",
        "arn:aws:ec2:*:*:instance/*"
      ]
    }
  ]
}

Version history

Current version v2, edited by AWS on 2024-08-15. 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/AwsGlueSessionUserRestrictedNotebookServiceRole
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedNotebookServiceRole
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedNotebookServiceRole

CloudFormation

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

Terraform

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

CDK (TypeScript)

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

Sources

Pending editorial review. No editorial sources are listed yet.