dimanche 28 juin 2015

Amazon S3 Bucket Policy: how to prevent public access to only certain files?

So far, my root bucket only has all permissions enabled for my AWS account. My bucket policy is the default one given to you in Amazons tutorial:

{
    "Version":"2012-10-17",
    "Statement": [{
    "Sid": "Allow Public Access to All Objects",
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::example.com/*"
  }
 ]
}

Does this mean that public users can only access any file on my bucket, but not upload/view list/edit permissions? Lastly, how can I modify this permission such that certain files redirect the user to my error page?




Aucun commentaire:

Enregistrer un commentaire