Make Cloudflare Work with my Current Site + Cloudfront CDN

Job ID: 32068131

Budget: $10 – $40 USD

I'm looking for an experienced SysAdmin who can help me with making all correct settings in Cloudflare and Amazon Cloudfront - for my website to load fast /without unnecessary loops/ bottlenecks.

I have my current website that works great with Amazon Cloudfront as CDN.
After Ddos attack i had to move DNS to Cloudflare.
In general - the site is working, but photos and CSS/JS files that are supposed to be loaded by Cloudfront CDN are blocked. - see picture attached. Strangely enough a small mp4 video is loaded ok.

I also tried adding CNAME to point to Cloudfront and also added CNAME in Cloudfront distribution setup but this didn't work.

My website has commercial paid basic SSL certificate (not *.wildcard)
My site is hosted on Linode server - Ubuntu / Apache / PHP / UFW / Fail2Ban.

Just so you know: my UFW is set to AllowIn only Cloudflare IP ranges and to DenyIn all other IPs. (this is security recommendation by the Cloudflare)

What others say on this topic: https://community.cloudflare.com/search?q=cloudfront
Related categories: System Admin Apache DNS Amazon Web Services Cloudflare