AwsGlueSessionUserRestrictedNotebookPolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:28 PM UTC
Version
v3
Total Versions
3
Created
Aug 15, 2024
Actions
16
Risk
MediumThe 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 launch resources that run as a more privileged role
Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.
- iam:PassRole: condition iam:PassedToService, on arn:aws:iam::*:role/service-role/AwsGlueSessionServiceRoleUserRestrictedForNotebook*, arn:aws:iam::*:role/AwsGlueSessionUserRestrictedNotebookServiceRole*
- glue:CreateSession: condition aws:RequestTag/owner, aws:TagKeys, on arn:aws:glue:*:*:session/*
- glue:RunStatement: condition aws:ResourceTag/owner, on arn:aws:glue:*:*:session/*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "NotebokAllowActions0",
"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}"
}
}
},
{
"Sid": "NotebookAllowActions1",
"Effect": "Allow",
"Action": [
"glue:StartCompletion",
"glue:GetCompletion"
],
"Resource": [
"arn:aws:glue:*:*:completion/*"
]
},
{
"Sid": "NotebookAllowActions2",
"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}"
}
}
},
{
"Sid": "NotebookAllowActions3",
"Effect": "Allow",
"Action": [
"glue:ListSessions"
],
"Resource": [
"*"
]
},
{
"Sid": "NotebookDenyActions",
"Effect": "Deny",
"Action": [
"glue:UntagResource",
"tag:TagResources",
"tag:UntagResources"
],
"Resource": [
"arn:aws:glue:*:*:session/*"
],
"Condition": {
"ForAnyValue:StringEquals": {
"aws:TagKeys": [
"owner"
]
}
}
},
{
"Sid": "NotebookPassRole",
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::*:role/service-role/AwsGlueSessionServiceRoleUserRestrictedForNotebook*",
"arn:aws:iam::*:role/AwsGlueSessionUserRestrictedNotebookServiceRole*"
],
"Condition": {
"StringLike": {
"iam:PassedToService": [
"glue.amazonaws.com"
]
}
}
}
]
},
"VersionId": "v3",
"IsDefaultVersion": true,
"CreateDate": "2024-08-15T20:51:03+00:00"
}
}Version History (6 recorded)
Raw historyscope changed, no action added or removed
Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Aug 15, 2024
57fe51dUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 22, 2023
5e7c7d1Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 18, 2022
0397b02