AwsGlueSessionUserRestrictedServiceRole
Summary
Provides full access to all AWS Glue resources except for sessions. Allows users to create and use only the interactive 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/AwsGlueSessionUserRestrictedServiceRole- Default version
- v3
- 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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| EC2 | 2 of 834 | 2 Tagging; 2 restricted, 2 conditional | ec2:CreateTags, ec2:DeleteTags |
| Glue | All 306 actions (see the Glue page) | 27 List, 36 Permissions management, 93 Read, 2 Tagging, 148 Write; 305 restricted, 0 conditional | glue:*, glue:CancelStatement, glue:CreateSession, glue:DeleteSession, glue:GetCompletion, glue:GetSession, glue:GetStatement, glue:ListSessions, glue:ListStatements, glue:RunStatement, glue:StartCompletion, glue:StopSession and 1 more |
| CloudWatch Logs | 3 of 133 | 3 Write; 3 restricted, 0 conditional | logs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents |
| S3 | 1 of 155 | 1 Write; 1 restricted, 0 conditional | s3: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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| S3 | 3 of 25 | 1 Read, 2 Write; 3 restricted, 0 conditional | s3: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 6): 1 matching actionstag:TagResources(deny-conditional, statement 6): 1 matching actionstag:UntagResources(deny-conditional, statement 6): 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.
Related policies
Same service
- AmazonAthenaFullAccess
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneGlueManageAccessRolePolicy
- AmazonDataZonePreviewConsoleFullAccess
- AmazonDataZoneProjectRolePermissionsBoundary
- AmazonDataZoneSageMakerEnvironmentRolePermissionsBoundary
- AmazonDataZoneSageMakerProvisioningRolePolicy
- AmazonGrafanaAthenaAccess
Same domain
- AmazonChimeSDKMediaPipelinesServiceLinkedRolePolicy
- AmazonChimeSDKMessagingServiceRolePolicy
- AmazonDataZoneDomainExecutionRolePolicy
- AmazonDataZoneFullAccess
- AmazonDataZoneFullUserAccess
- AmazonDataZoneRedshiftGlueProvisioningPolicy
- AmazonDataZoneRedshiftManageAccessRolePolicy
- AmazonElasticMapReduceforAutoScalingRole
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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowGlueActions",
"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/*"
]
},
{
"Sid": "AllowCompletionActions",
"Effect": "Allow",
"Action": [
"glue:StartCompletion",
"glue:GetCompletion"
],
"Resource": [
"arn:aws:glue:*:*:completion/*"
]
},
{
"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": "AllowStatementActions",
"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": "AllowListSessionsAction",
"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": "AllowS3BucketActions",
"Effect": "Allow",
"Action": [
"s3:CreateBucket"
],
"Resource": [
"arn:aws:s3:::aws-glue-*"
]
},
{
"Sid": "AllowS3ObjectActions",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::aws-glue-*/*",
"arn:aws:s3:::*/*aws-glue-*/*"
]
},
{
"Sid": "AllowS3ObjectCrawlerActions",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::crawler-public*"
]
},
{
"Sid": "AllowLogsActions",
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:*:*:/aws-glue/*"
]
},
{
"Sid": "AllowTagsActions",
"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 v3, edited by AWS on 2024-08-05. 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/AwsGlueSessionUserRestrictedServiceRole
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedServiceRole
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedServiceRoleCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedServiceRoleTerraform
resource "aws_iam_role_policy_attachment" "service_role_awsgluesessionuserrestrictedservicerole" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/service-role/AwsGlueSessionUserRestrictedServiceRole"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AwsGlueSessionUserRestrictedServiceRole"),
);Sources
Pending editorial review. No editorial sources are listed yet.