I am trying to configure CloudFront to work with images, but access to it currently does not work and returns the error "The specified bucket does not exist."
<Error> <Code>NoSuchBucket</Code> <Message>The specified bucket does not exist</Message> <BucketName>someBucketName</BucketName> <RequestId>irrelevant</RequestId> <HostId> irrelevant </HostId> </Error>
CloudFront requires that you use the domain to host, and not the URL as the base. This domain is .s3.amazonaws.com, which should be equivalent to s3.amazonaws.com/bucketName.
However, I can access the content through the URL:
https://s3.amazonaws.com/someBucketName/image.jpg
but not through
https://someBucketName.s3.amazonaws.com/image.jpg
which returns the same error. Any idea why this is happening? Is there something I need to do to make it an accessible subdomain? The same thing happens with https and http.
Tom jacques
source share