[英]Error while creating resource based policy
Trying to create a resource-based policy and specifying a group as principal but it is failing,尝试创建基于资源的策略并将组指定为主体,但失败了,
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::<acc_number>:group/dev-group"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<bucket>/text.txt"
}
]
}
It fails with error:它失败并出现错误:
This is not possible, per AWS documentation.根据 AWS 文档,这是不可能的。
You can specify any of the following principals in a policy:您可以在策略中指定以下任何主体:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.