AwsGlueSessionUserRestrictedPolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:28 PM UTC
Version
v3
Total Versions
2
Created
Aug 5, 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/AwsGlueSessionServiceRoleUserRestricted*
- 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": "AllowSessionActions",
"Effect": "Allow",
"Action": [
"glue:CreateSession"
],
"Resource": [
"arn:aws:glue:*:*:session/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/owner": "${aws:userid}"
},
"ForAnyValue:StringEquals": {
"aws:TagKeys": [
"owner"
]
}
}
},
{
"Sid": "AllowGlueTaggingAction",
"Effect": "Allow",
"Action": [
"glue:TagResource"
],
"Resource": "arn:aws:glue:*:*:session/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/owner": "${aws:userid}",
"aws:RequestTag/owner": "${aws:userid}"
}
}
},
{
"Sid": "AllowCompletionActions",
"Effect": "Allow",
"Action": [
"glue:StartCompletion",
"glue:GetCompletion"
],
"Resource": [
"arn:aws:glue:*:*:completion/*"
]
},
{
"Sid": "AllowGlueActions",
"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:userid}"
}
}
},
{
"Sid": "AllowListSessions",
"Effect": "Allow",
"Action": [
"glue:ListSessions"
],
"Resource": [
"*"
]
},
{
"Sid": "DenyTagActions",
"Effect": "Deny",
"Action": [
"glue:UntagResource",
"tag:TagResources",
"tag:UntagResources"
],
"Resource": [
"arn:aws:glue:*:*:session/*"
],
"Condition": {
"ForAnyValue:StringEquals": {
"aws:TagKeys": [
"owner"
]
}
}
},
{
"Sid": "AllowPassRoleActions",
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::*:role/service-role/AwsGlueSessionServiceRoleUserRestricted*"
],
"Condition": {
"StringLike": {
"iam:PassedToService": [
"glue.amazonaws.com"
]
}
}
}
]
},
"VersionId": "v3",
"IsDefaultVersion": true,
"CreateDate": "2024-08-05T23:06:45+00:00"
}
}Version History (5 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 6, 2024
631093fUpdate 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.
Apr 14, 2022
25a7b53