I would like to use a subdomain instead of a direct url for my s3 bucket on amazon.com. So instead of uploading images via url like http://bucket-images.s3-eu-west-1.amazonaws.com/path/to/image.png , I would like to use http://assets.domain.com/path/to/image.png . I tried to set CNAME as follows:
CNAME assets domain.com bucket-images.s3-eu-west-1.amazonaws.com
But after installing this CNAME, I get this error from amazon when I visit the domain:
<Error> <Code>NoSuchBucket</Code> <Message>The specified bucket does not exist</Message> <BucketName>assets.domain.com</BucketName> <RequestId>45646DFSDFSFASDF</RequestId> <HostId> dfasdcvcvd546456454ds5fasdf4ad5f64asdfasdfccdfgvggtg </HostId> </Error>
Here they report a change to the name bucket: https://forums.aws.amazon.com/message.jspa?messageID=237562 But that doesn't make sense. I used to work on a project that used a bucket name that is completely different from the subdomain. So there has to be a way ... Anyone who can help me?
source share