s3 Policy has invalid action - s3:ListAllMyBuckets

后端 未结 4 858
故里飘歌
故里飘歌 2021-01-01 17:45

I\'m trying these policy through console.aws.amazon.com on my buckets:


    {
      \"Statement\": [
        {
          \"Effect\": \"Allow\",
          \"Action\         


        
4条回答
  •  情话喂你
    2021-01-01 18:28

    As zdev mentioned, you need to do this for the IAM. Go to the IAM console and navigate to Users > Permissions > Inline policies > Create > Custom, and enter this:

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "s3:ListAllMyBuckets"
                ],
                "Resource": [
                    "arn:aws:s3:::*"
                ]
            }
        ]
    }
    

提交回复
热议问题