We all want our own domain name to be setup for CloudFront instead of amazon default CloudFront domain name.
We need two things for that to happen.
- DNS should be served from amazon Route53
- SSL for our custom domain
You need to upload your SSL to amazon to setup in CloudFront and to do that use the following command
aws iam upload-server-c
Then you need to map a domain to CloudFront. Create a CNAME record in Route53 to link with your CloudFront URL. Thats it and you are ready to use your own domain name like cdn.yourdomain.com instead of random-name.cloudfront.net.
I have a setup with letsencrypt SSL and other commercial services too. It's the same way and it is as simple as it is.
We are here to help. Let us know if you need assistance firstname.lastname@example.org