I made an S3 bucket to hold my digital products that i will be selling(digital art for now). I made 2 folders, one for watermarked images, another for unwatermarked images. I accomplished this before by enabling ACLs but i wanted to try to use policies to restrict access to some folders in the bucket, and grant public access to other folders in the bucket. this is my policy, but it doesnt seem to have worked for some reason. Am I missing something?
this is my policy “
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Allow”,
“Principal”: “*”,
“Action”: “s3:GetObject”,
“Resource”: “arn:aws:s3:::—–/—–/*”
}
]
}”
I kept ACLs disabled, allowed for public access, and created a policy specifically for the folder that i wanted to be accessed.
enter image description here
enter image description here