Skip to main content
IAM Policy Map

AWSGlueServiceNotebookRole

OperatorService roleActivePermissions reviewedShow on mapCompare

Summary

Policy for AWS Glue service role which allows customer to manage notebook server

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

Identity

ARN
arn:aws:iam::aws:policy/service-role/AWSGlueServiceNotebookRole
Default version
v4
Created
Last edited
Services
codewhisperer, ec2, glue, s3

Control-plane actions (45)

By access level: 1 List, 19 Read, 2 Tagging, 23 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CodeWhisperer1 of 191 Read; 0 restricted, 0 conditionalcodewhisperer:GenerateRecommendations
EC22 of 8342 Tagging; 2 restricted, 2 conditionalec2:CreateTags, ec2:DeleteTags
Glue39 of 30616 Read, 23 Write; 0 restricted, 0 conditionalglue:BatchCreatePartition, glue:BatchDeleteConnection, glue:BatchDeletePartition, glue:BatchDeleteTable, glue:BatchGetPartition, glue:CreateConnection, glue:CreateDatabase, glue:CreateJob, glue:CreatePartition, glue:CreateTable, glue:CreateUserDefinedFunction, glue:DeleteConnection and 27 more
S33 of 1551 List, 2 Read; 0 restricted, 0 conditionals3:GetBucketAcl, s3:GetBucketLocation, s3:ListAllMyBuckets
CodeWhisperer: 1 actions
  • codewhisperer:GenerateRecommendations (Read)
EC2: 2 actions
  • ec2:CreateTags (Tagging)
  • ec2:DeleteTags (Tagging)
Glue: 39 actions
  • glue:BatchCreatePartition (Write)
  • glue:BatchDeleteConnection (Write)
  • glue:BatchDeletePartition (Write)
  • glue:BatchDeleteTable (Write)
  • glue:BatchGetPartition (Read)
  • glue:CreateConnection (Write)
  • glue:CreateDatabase (Write)
  • glue:CreateJob (Write)
  • glue:CreatePartition (Write)
  • glue:CreateTable (Write)
  • glue:CreateUserDefinedFunction (Write)
  • glue:DeleteConnection (Write)
  • glue:DeleteDatabase (Write)
  • glue:DeleteJob (Write)
  • glue:DeletePartition (Write)
  • glue:DeleteTable (Write)
  • glue:DeleteUserDefinedFunction (Write)
  • glue:GetConnection (Read)
  • glue:GetConnections (Read)
  • glue:GetDatabase (Read)
  • glue:GetDatabases (Read)
  • glue:GetDevEndpoint (Read)
  • glue:GetDevEndpoints (Read)
  • glue:GetJob (Read)
  • glue:GetJobs (Read)
  • glue:GetPartition (Read)
  • glue:GetPartitions (Read)
  • glue:GetTable (Read)
  • glue:GetTableVersions (Read)
  • glue:GetTables (Read)
  • glue:GetUserDefinedFunction (Read)
  • glue:GetUserDefinedFunctions (Read)
  • glue:UpdateConnection (Write)
  • glue:UpdateDatabase (Write)
  • glue:UpdateDevEndpoint (Write)
  • glue:UpdateJob (Write)
  • glue:UpdatePartition (Write)
  • glue:UpdateTable (Write)
  • glue:UpdateUserDefinedFunction (Write)
S3: 3 actions
  • s3:GetBucketAcl (Read)
  • s3:GetBucketLocation (Read)
  • s3:ListAllMyBuckets (List)

Data-plane actions (4)

By access level: 1 List, 1 Read, 2 Write.

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

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 27 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:CreateDatabase",
        "glue:CreatePartition",
        "glue:CreateTable",
        "glue:DeleteDatabase",
        "glue:DeletePartition",
        "glue:DeleteTable",
        "glue:GetDatabase",
        "glue:GetDatabases",
        "glue:GetPartition",
        "glue:GetPartitions",
        "glue:GetTable",
        "glue:GetTableVersions",
        "glue:GetTables",
        "glue:UpdateDatabase",
        "glue:UpdatePartition",
        "glue:UpdateTable",
        "glue:CreateConnection",
        "glue:CreateJob",
        "glue:DeleteConnection",
        "glue:DeleteJob",
        "glue:GetConnection",
        "glue:GetConnections",
        "glue:GetDevEndpoint",
        "glue:GetDevEndpoints",
        "glue:GetJob",
        "glue:GetJobs",
        "glue:UpdateJob",
        "glue:BatchDeleteConnection",
        "glue:UpdateConnection",
        "glue:GetUserDefinedFunction",
        "glue:UpdateUserDefinedFunction",
        "glue:GetUserDefinedFunctions",
        "glue:DeleteUserDefinedFunction",
        "glue:CreateUserDefinedFunction",
        "glue:BatchGetPartition",
        "glue:BatchDeletePartition",
        "glue:BatchCreatePartition",
        "glue:BatchDeleteTable",
        "glue:UpdateDevEndpoint",
        "s3:GetBucketLocation",
        "s3:ListBucket",
        "s3:ListAllMyBuckets",
        "s3:GetBucketAcl",
        "codewhisperer:GenerateRecommendations"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject"
      ],
      "Resource": [
        "arn:aws:s3:::crawler-public*",
        "arn:aws:s3:::aws-glue*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:PutObject",
        "s3:DeleteObject"
      ],
      "Resource": [
        "arn:aws:s3:::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 v4, edited by AWS on 2023-10-09. 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/AWSGlueServiceNotebookRole
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueServiceNotebookRole
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSGlueServiceNotebookRole

CloudFormation

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

Terraform

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

CDK (TypeScript)

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

Sources

Pending editorial review. No editorial sources are listed yet.