Serve your files using the CloudFront CDN

Lab Steps

Logging in to the Amazon Web Services Console
Create an S3 bucket
Create a CloudFront Distribution
Upload a demo image gallery to the S3 Bucket
Make S3 files accessible to everyone
Test the CloudFront distribution
Disable a CloudFront distribution
Delete a CloudFront distribution
Destroy an S3 bucket

The hands-on lab is part of these learning paths

Certified Developer – Associate Certification Preparation for AWS
course-steps 29 certification 5 lab-steps 22 description 2
AWS Networking & Content Delivery
course-steps 7 certification 2 lab-steps 5
AWS Advanced Networking – Specialty Certification Preparation
course-steps 20 certification 2 lab-steps 8 quiz-steps 4
Operations on AWS
course-steps 5 certification 2 lab-steps 3
more_horiz See 2 more

Ready for the real environment experience?

Time Limit1h 30m
star star star star star-half


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. You can stream audio or video contents in real time using the RTMP protocol. Each CloudFront distribution has a unique 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.


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.


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


Antonio is an IT Manager and a software and infrastructure Engineer with 15 years of experience in designing, implementing and deploying complex webapps.

He has a deep knowledge of the IEEE Software and Systems Engineering Standards and of several programming languages (Python, PHP, Java, Scala, JS).

Antonio has also been using and designing cloud infrastructures for five years, using both public and private cloud services (Amazon Web Services, Google Cloud Platform, Azure, Openstack and Vmware vSphere).

During his past working experiences, he designed and managed large web clusters, also developing a service orchestrator for providing automatic scaling, self-healing and a Disaster Recovery Strategy.

Antonio is currently the Labs Product Manager and a Senior DevOps Engineer at Cloud Academy; his main goal is providing the best learn-by-doing experience possible taking care of the Cloud Academy Labs platform.