how to setup custom domain for amazon cloudfront

Reading Time : ~ .

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

    By Posted On
SENIOR DEVELOPER at MICROPYRAMID

Need any Help in your Project?Let's Talk

Latest Comments
Related Articles
Django Hosting on Amazon EC2 with wordpress on same domain Jagadeesh V

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

Continue Reading...
Paginating S3 objects using boto3 Jagadeesh V

When using Boto you can only List 1000 objects per request. So to obtain all the objects in the bucket. You can use s3's paginator.

Continue Reading...
Deploying Django project on Elastic Beanstalk Shirisha Gaddi

Here You can learn about how to setup and deploy a Django application to Amazon Web Services (AWS).

Tools/technologies used:
Python v2.7
Django ...

Continue Reading...

Subscribe To our news letter

Subscribe to our news letter to receive latest blog posts into your inbox. Please fill your email address in the below form.
*We don't provide your email contact details to any third parties