gpt4 book ai didi

amazon-web-services - 运行 EMR 作业的最低 AWS 政策要求

转载 作者:行者123 更新时间:2023-12-02 02:20:34 25 4
gpt4 key购买 nike

我想使用 MRJob Python 框架对来自 S3 存储桶 com.test.mybucket 的数据运行 Elastic Mapreduce。但是,我在 S3 和其他 EC2 实例中有很多其他数据,我不想触及。 AWS 用户运行完整作业所需的最少访问凭证集是多少?

最佳答案

这是一个例子:

{
"Statement": [
{
"Action": [
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject",
"s3:DeleteObject",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::com.test.mybucket*"
],
"Effect": "Allow",
"Sid": "Stmt1320976936189"
},
{
"Action": [
"elasticmapreduce:*"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "Stmt1322766641851"
},
{
"Action": [
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CancelSpotInstanceRequests",
"ec2:CreateSecurityGroup",
"ec2:CreateTags",
"ec2:DescribeAvailabilityZones",
"ec2:DescribeInstances",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSpotInstanceRequests",
"ec2:ModifyImageAttribute",
"ec2:ModifyInstanceAttribute",
"ec2:RequestSpotInstances",
"ec2:RunInstances",
"ec2:TerminateInstances"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Sid": "Stmt1323200725902"
}
]
}

另见 http://docs.amazonwebservices.com/ElasticMapReduce/latest/DeveloperGuide/index.html?environmentconfig_iam.html#ec2-iam-policies

关于amazon-web-services - 运行 EMR 作业的最低 AWS 政策要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8405660/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com