AWS S3 Access Denied when open object URL in browser
Here is the problem, in your bucket policies you only allow put and you are not allowing read access:
"Action": [ "s3:PutObject", "s3:PutObjectAcl" ],
I doubted this might need permission to get the object so that you can view the image from the URL in S3.
I configured the bucket policy like given below.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject"
],
"Resource": "arn:aws:s3:::delxpro.com/*"
}
]
}
In the above code, look for this piece of line "s3:GetObject". Add this line in your action attribute and check will it work or not.
It will retrieves object from S3, so that you can view your image from the URL.