By continuing to navigate on this website, you accept the use of cookies to serve you more relevant services & content.
For more information and to change the setting of cookies on your computer, please read our Cookie Policy.

how to setup custom domain for amazon cloudfront

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.

  1. DNS should be served from amazon Route53
  2. 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-certificate --server-certificate-name myServerCertificate --certificate-body file://public_key_cert_file.pem --private-key file://my_private_key.pem --certificate-chain file://my_certificate_chain_file.pem

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 hello@micropyramid.com

    Posted On
  • 17 November 2015
  • By
  • Micropyramid

Need any Help in your Project?Let's Talk

Latest Comments
Related Articles
CORS with Amazon S3 and CloudFront

We struggle to load fonts from CloudFront because of CORS.

CORS - Cross Origin Resource Sharing is a security measure to block macious scripts or ...

Continue Reading...
Using AWS Lambda with S3 and DynamoDB

AWS lambda is handy tool for event driven computation, here we will learn how to configure and setup lambda function so to run our function ...

Continue Reading...
Django Hosting on Amazon EC2 with wordpress on same domain

Configuring the Wordpress as subdirectory can be tricky. In this tutorial we will Setup a Django Website alongside a wordpress blog.

Continue Reading...
open source packages

Subscribe To our news letter

Subscribe and Stay Updated about our Webinars, news and articles on Django, Python, Machine Learning, Amazon Web Services, DevOps, Salesforce, ReactJS, AngularJS, React Native.
* We don't provide your email contact details to any third parties