But when I try accessing http://images.mydomain.com/cf/landing-page/abc.png, I get below error
404 Not Found
Code: NoSuchBucket
Message: The specified bucket does not exist
BucketName: images mydomain com
At the same time I am able to access the image directly form S3
Basically we would like our S3 images to be served on images subdomain through cloudflare
A CNAME record just points to the same IP as the destination. Ordinarily, Amazon S3 will require that the hostname you are serving from matches the bucket name. i.e. in this case the bucket would have to be called images.mydomain.com exactly. Not sure how this works for s3-website though.
Luckily, Cloudflare recently released a neat feature that allows you to link buckets without that mess: