A simple set-up on how to point Cloudfront to the EC2. I hope you understand the concept of Route 53 DNS and how to create a Certificate from the Certificate Manager. You can refer to the diagram below for how I set up a simple setup. Just follow step by step and you will be fine.
Once you have Create the Distribution head back to Route53
Update Route 53 Record Set
Once the distribution is created and deployed, copy the domain name of the distribution (it should look something like 23423ABDre8.cloudfront.net).
Go to Route 53 console, find the hosted zone for your domain, and create or update
A record set to point your domain (‘domain.com’ ) to this CloudFront distribution. Usually, I do create an ALIAS for the distribution
A record set to point your domain www.domain.com, to this CloudFront distribution. Usually, I do create an ALIAS for the distribution