Deploy Amazon CloudFront as an App Edge
In this lab, you’ll configure CloudFront as a content distribution network (CDN) in front of a web server. In addition, you’ll practice testing and modifying caching behaviors in the CDN to ensure the correct content is cached.
Terms and conditions apply.
Lab info
Lab author
Challenge
Retrieve Domain Name of the Origin
Get the domain name of an EC2 web server that will be the origin for CloudFront. Save it for use in subsequent steps.
Challenge
Create an Initial CloudFront Distribution
Create an initial CloudFront distribution in front of the web server and check that caching is working.
Challenge
Separate Caching Behavior for Dynamic and Static Content
Create a new CloudFront Behavior to cache static web site content and modify the Default Behavior to not cache dynamic content unless requested by the web server.
Challenge
Invalidate Cache and Test New Behaviors
Create a new Invalidation to purge CloudFront of stale content without waiting for the cache to timeout. You will then test that both dynamic and static content are appropriately cached or not.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Firefox or Chrome DevTools