gpt4 book ai didi

amazon-iam - StarCluster 所需的 IAM 权限

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

我正在关注 StarCluster configuration instructions我想创建一个新用户供 StarCluster 使用。我的问题是 StarCluster 运行所需的最小 IAM 权限集是什么?

是否需要 AmazonEC2FullAccess 政策(如 indicated by this )或是否有不太全面的政策。

最佳答案

我已使用以下策略允许 IAM 用户启动 t2.micro 实例(仅)

 {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ExtraActionsNeededByStarCluster",
"Effect": "Allow",
"Action": [
"ec2:CreateKeyPair",
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:AuthorizeSecurityGroup",
"ec2:CreateTags",
"ec2:DeleteTags",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:TerminateInstances"
],
"Resource": "*"
},
{
"Sid": "AllowDescribeForAllResources",
"Effect": "Allow",
"Action": [
"ec2:Describe*"
],
"Resource": "*"
},
{
"Sid": "OnlyAllowCertainInstanceTypesToBeCreated",
"Effect": "Allow",
"Action": [
"ec2:RunInstances"
],
"Resource": [
"*"
],
"Condition": {
"StringEquals": {
"ec2:InstanceType": [
"t2.micro"
]
}
}
},
{
"Sid": "AllowUserToStopStartDeleteInstances",
"Effect": "Allow",
"Action": [
"ec2:TerminateInstances",
"ec2:StopInstances",
"ec2:StartInstances"
],
"Resource": "arn:aws:ec2:*:account:instance/*"
}
]
}

关于amazon-iam - StarCluster 所需的 IAM 权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29923450/

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