I am trying to install the S3 Policy bucket, but it does not work at all. I need to be allowed to upload files to anonymous users, but only authenticated users can download them. I tried 2 thoughts:
{ "Id": "Policy1378380575437", "Statement": [ { "Sid": "Stmt1378380436712", "Action": [ "s3:PutObject" ], "Effect": "Allow", "Resource": "arn:aws:s3:::my_bucket/*", "Principal": { "AWS": [ "*" ] } }, { "Sid": "Stmt1378380568645", "Action": [ "s3:GetObject" ], "Effect": "Allow", "Resource": "arn:aws:s3:::my_bucket/*", "Principal": { "AWS": [ "arn:aws:iam::1111111111:root" ] } } ] }
But the problem is that GetObject is enabled by default, which means that anonymous users can upload files. I tried adding a new Sid argument to * GetObject, but always prohibits overriding.
I appreciate any suggestion.
Thanks.
source share