本文介绍了AWS S3斗政策无效的组主的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是从How我可以强制执行的文件类型的上传与AWS的S3斗政策

在应用斗策略:

{
  "Version":"2008-10-17",
  "Statement": [
    {
      "Sid":"AddPerm",
      "Effect":"Allow",
      "Principal": { "AWS": "arn:aws:iam::111122223333:group/admins" },
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::bucket/*.txt"
    }
  ]
}

组管理员肯定存在,但我得到的错误:无效的主要政策 - AWS:ARN:AWS:IAM :: 111122223333:组/管理员

The group "admins" definitely exists, but I get the error:"Invalid principal in policy - "AWS" : "arn:aws:iam::111122223333:group/admins""

为什么不承认?

推荐答案

这是不可能用在主要群体的时刻。请参阅<一href="https://forums.aws.amazon.com/message.jspa?messageID=356160">https://forums.aws.amazon.com/message.jspa?messageID=356160

It's not possible to use groups in Principal at the moment. See https://forums.aws.amazon.com/message.jspa?messageID=356160

这篇关于AWS S3斗政策无效的组主的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 03:33