Problem getting my S3 images to display on eBay

0

I just began using AWS and S3 a few days ago in order to have a place to store my photos for eBay sales items. I followed eBay's instructions on setting up their bulk upload process and it works, except that the photos on S3 don't show up in the eBay listings after I finish the bulk upload. Everything else seems to be there (a miracle considering it's eBay). I asked my support contact at eBay about the issue; he wrote back that he tried to look at an image with this URL: https://ebay-bucket-01.s3.us-west-2.amazonaws.com/00019.jpg which should have been a good link, and he got the following error message, and commented:

"I got an error:" This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>63R2BSR35C6JGSSN</RequestId> <HostId>5AqDwWQkNbjQBHyCddMzOGoCMknzbnmlcInA0ib17w9BNK4194dkZL1xnyM5YQwTylqea3jVdoI=</HostId> </Error> "It may be due to a permission issue. You may need to change some setting. For assistance with that, you may need to contact support for the hosting service."

So I went into my bucket and double-checked to make sure that the images had permission for public access, which they did.

If anyone has a thought about how to solve this problem, it would be greatly appreciated. Thank you!

Jon Gladwell

1 réponse
0

Hello.

What are the public access settings for your S3 bucket?
If you want to directly expose the S3 bucket itself, you need to turn off all public access blocks.
Also, public access block settings are at the account level and S3 bucket level, so please check both.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html#configuring-block-public-access

Also, please set the bucket policy as shown below.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::s3-bucketname/*"
            ]
        }
    ]
}

There is also a way to distribute using CloudFront without directly publishing S3, so please check that as well.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

profile picture
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions