You’re saying that the links are for the bucket rather than the CDN? Did you have the bucket configured before the CDN? You may need to rebake those posts. You can try in the UX by clicking the wrench and “rebuild html”. If that fixes it, then you need to rebake all posts with images.