Serve your files using the CloudFront CDN

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating an Amazon S3 Bucket
lock
Creating a CloudFront Distribution
lock
Uploading a Demo Image Gallery to the S3 Bucket
lock
Making the S3 Files Publicly Accessible
lock
Testing the CloudFront Distribution
lock
Disabling a CloudFront Distribution
lock
Deleting a CloudFront Distribution
lock
Destroying an S3 Bucket

The hands-on lab is part of these learning paths

AWS Networking & Content Delivery
15
2
9
AWS Advanced Networking – Specialty Certification Preparation
19
2
8
4
Operations on AWS
3
2
3
more_horizSee 3 more

Ready for the real environment experience?

DifficultyBeginner
Time Limit1h 30m
Students8004
Ratings
4.6/5
starstarstarstarstar-half

Description

Create a Content Delivery Network (CDN) Distribution using Amazon CloudFront.

Amazon CloudFront is a content delivery network (CDN) service. You can speed up the delivery of static files using the HTTP or the HTTPS protocols. Each CloudFront distribution has a unique cloudfront.net domain name that can be used to reference objects through the global network of edge locations.

AWS CloudFront uses a global network of edge locations for content delivery. There are 20 locations in USA, 16 locations in Europe, 13 in Asia, 2 in Australia and 2 in South America. You can also monitor and receive notifications on the operational performance of CloudFront distributions using CloudWatch, and track trends in data transfer and requests checking the usage charts.

CloudFront is a powerful service and, during this lab, you will learn to create a fully functional CloudFront distribution using an S3 bucket as origin. 

Learning Objectives

Upon completion of this beginner level lab, you will be able to:

  • Create an Amazon S3 bucket
  • Create a Amazon CloudFront distribution
  • Upload a demo website to a S3 bucket
  • Delete a S3 bucket
  • Delete a CloudFront distribution

Note: Cloudfront may take up to 25 minutes to deploy your distribution. You will need to wait until it is deployed to complete the laboratory.

Prerequisites

Experience with Amazon S3 and Amazon CloudFront will be beneficial but is not required.

The following courses can be used to learn more about them:

Updates

September 7th, 2021 - Updated the lab step instructions for downloading the Demo gallery files from the Amazon S3 bucket 

January 4th, 2020 - Updated the make public lab step for the new Amazon S3 user-interface

August 25th, 2020 - Updated all screenshots and instructions

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

November 20th, 2018 - Updated instructions to incorporate new S3 public access security settings

About the Author
Students31225
Labs74
Courses2
Learning paths1

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds the Developer - Associate, Sysops Administrator - Associate, and Solutions Architect – Associate AWS certifications.