I used HTML and Javascript to upload a file on S3. I am facing a problem --> I created a role for unauthenticated entities and assigned the following policy to it.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:putObject"
],
"Resource": [
"arn:aws:s3:::bucket-name/*"
]
}
]
}
I get an access denied error.But when I give the permission as
"s3:*" I am able to upload the file. What minimum permissions can I give to make this work