Blog Details

How to deliver content via Content Delivery Network – Amazon CloudFront – 100 days of cloud: Day 5


Amazon CloudFront 🌩️ – An Global Edge Network

DAY 5 – Deliver your content like Lightning Mcqueen – Amazon CloudFront

☁️100 days of Cloud- Day Five
✅Follow Me on Twitter


Tweet This Blog – Read on GitHub – Read On

What is 🌩️ Amazon CloudFront?

Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users.
When users request content that is been delivered via CloudFront, the demand is fullfilled through a nearest edge location to archive lowest latency.

Global Edge Network

Reliable, low latency and high throughput network connectivity.
CloudFront Edge locations are fully redundant, multiple 100GbE parallel fiber that circles the globe and links with tens of thousands of networks for improved origin fetches and dynamic content acceleration.


  • protection against layer 3 and layer 7 ( Application & Network ) attacks
  • SSL/TLS certificates , you can create free certificates from Amazon certificate manager and embed to CloudFront.
  • Control on accessing the data ex:-restrict access to only authenticated viewers (signed URLs and Signed Cookies, Token Authentication)
  • Compliance , ** PCI-DSS Level 1, HIPAA, and ISO 9001, ISO/IEC 27001:2013, 27017:2015, 27018:2019, SOC (1, 2 and 3)**
  • DevOps , Fast Change Propagation and Invalidations
  • Cost effective

📗 Tutorial


AWS account , and Privilage to manage CloudFront and S3
Host a Static web content in S3 , if you don’t know how to,here is the tutorial link

Lets create our CDN.

Once you sign in go to ClodFront

Steps Screenshots
Click on to Create distribution Image name
Name and Update details, if you want the orgin to access the content in s3 via CDN only use OAI CDN Name
ACM Certificate, The certificate must be in the US East (N. Virginia) Region (us-east-1) Image ACM
Enter CNAME, if you wanna serve via custom domain names that you use in URLs for the files served by this distribution. Image Cname
Keep everything else Default

Now Click Create distribution.

Wait till the deployment get ✔️success

Now Under Domain Name you will get , Copy and visit the link. you will be able to see the content via CDN.
If you have added CNAME for your domain , update this with your domain provider.

tadaa 🎉congratulations , you have successfully configured your first CDN with AWS