This assumes that you already have an AWS account and a Cloudflare account.
You have some application server or static website running on www subdomain and you want to redirect traffic from the naked domain(eg highlyreco.com) to the www subdomain(eg www.highlyreco.com). Why? Because :
Click on create bucket
Enter the naked domain as the bucket name and select a region.
Under “set permissions” tab in the bucket creation process, from the “Manage public permissions” choose “Grant public read access to this bucket”
Click on the newly created bucket. Click on the properties tab and you will see the following.
Click on Static site hosting. In the dialog box that opens, choose option – “Redirect requests”. In the input boxes enter the target www domain(eg www.highlyreco.com) and the protocol. Copy the endpoint shown in the modal. You will need to for DNS mapping.
On a regular DNS router, you cant add a “CNAME record” to a naked domain. However cloudflare supports. Cloudflare internally converts that to an “A record”. It should look this when you are done.
Thats it. Your naked domain(highlyreco.com) will now redirect to (www.highlyreco.com).