本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
AWSGlueServiceRole
描述:Glue 服务 AWS 角色的策略,该策略允许访问相关服务 EC2,包括 S3 和 Cloudwatch Logs
AWSGlueServiceRole
是一项 AWS 托管式策略。
使用此策略
您可以将 AWSGlueServiceRole
附加到您的用户、组和角色。
策略详细信息
-
类型:服务角色策略
-
创建时间:2017 年 8 月 14 日 13:37 UTC
-
编辑时间:2023 年 9 月 11 日 16:39 UTC
-
ARN:
arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole
策略版本
策略版本:v5 (默认值)
此策略的默认版本是定义策略权限的版本。当使用该策略的用户或角色请求访问 AWS 资源时, AWS 会检查策略的默认版本以确定是否允许该请求。
JSON 策略文档
{
"Version" : "2012-10-17",
"Statement" : [
{
"Effect" : "Allow",
"Action" : [
"glue:*",
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:ListAllMyBuckets",
"s3:GetBucketAcl",
"ec2:DescribeVpcEndpoints",
"ec2:DescribeRouteTables",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeVpcAttribute",
"iam:ListRolePolicies",
"iam:GetRole",
"iam:GetRolePolicy",
"cloudwatch:PutMetricData"
],
"Resource" : [
"*"
]
},
{
"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*",
"arn:aws:s3:::aws-glue-*"
]
},
{
"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/*"
]
}
]
}