S3 Bucket action doesn't apply to any resources

前端 未结 11 673
无人及你
无人及你 2021-01-30 09:55

I\'m following the instructions from this answer to generate the follow S3 bucket policy:

{
  \"Id\": \"Policy1495981680273\",
  \"Version\": \"2012-10-17\",
  \         


        
11条回答
  •  情歌与酒
    2021-01-30 10:20

    From IAM docs, http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Action

    Some services do not let you specify actions for individual resources; instead, any actions that you list in the Action or NotAction element apply to all resources in that service. In these cases, you use the wildcard * in the Resource element.

    With this information, resource should have a value like below:

    "Resource": "arn:aws:s3:::surplace-audio/*"
    

提交回复
热议问题