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개 답변
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
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠