DEV Community

Cover image for Amazon CloudFront 🌩️ - An Global Edge Network
Anuvindh for AWS Community Builders

Posted on • Updated on

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

Image COVER2

Tweet This Blog - Read on GitHub - Read On iCTPro.co.nz


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.
CDN
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.

Features

  • 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

Prerequisites

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
HTPPS/TLS Image SSL
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 xxxxxxxxxxxxxx.cloudfront.net , 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

Top comments (0)