We have a static site hosted on S3 with CloudFront containers in front.
One bucket and container for www and non-www. www is set to redirect to non-www at a bucket level.
The nameservers are correctly pointed to Cloudflare. There are CNAME records set to resolve to each of the CloudFront containers for www and non-www.
The non-www version of the site resolves correctly, the www version is still resolving to the site that was being delegated at the old NS host…
In conjunction with this, the host SSL for non-www seems to intermittently drop out for 10 minutes at a time?
Now the non-www record is triggering an SSL error. Upon further investigation, it looks as though the previously delegated CNAME is interferring with the newly delegated values;
Is it best to link www and non-www CNAMEs to different CloudFront distributions, each containing one S3 bucket as an origin - or - link to one CloudFront distro for both www and non-www containing both S3 buckets as origins?