Configuring a Static Website with S3 and CloudFront

Configuring a Static Website with S3 and CloudFront
Configuring a Static Website with S3 and CloudFront

CLOUD LABS

Configuring a Static Website with S3 and CloudFront

In this Cloud Lab, you’ll learn to host a static website using an S3 bucket and CloudFront.

8 Tasks

beginner

1hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of the AWS S3 service
Hands-on experience hosting a static website on an S3 bucket
The ability to enable public access on S3 and configure bucket policies
Working knowledge of configuring and accessing a static website hosted on S3 using a CloudFront distribution

Technologies
AWS logoAWS
S3 logoS3
CloudFront
Cloud Lab Overview

Amazon Web Services (AWS) offers many valuable services for different purposes. In this Cloud Lab, you’ll learn to host a static website using two of its services, S3 and CloudFront. S3 is a storage service, and CloudFront is a content delivery network (CDN) service.

You’ll use the AWS management console to create an S3 bucket, upload files, host a static website, and configure the public access permissions. You’ll create a custom error page, Origin Access Control (OAC) for CloudFront, the configuration of CloudFront distribution, and clean up the allocated resources at the end of this Cloud Lab.

After completing this Cloud Lab, you can host your static website on an S3 bucket and extend your knowledge and understanding of CloudFront to host dynamic websites even with your custom domain names.

The following is the high-level architecture diagram of the infrastructure that we will create in this lab:

Architecture Diagram
Architecture Diagram

Cloud Lab Tasks
1.Introduction
Getting Started
2.Host a Static Website
Add an S3 Bucket and Static Web Hosting Feature
Upload an HTML Document
Error Document and Public Access
3.Host a Website Using CloudFront
Create a CloudFront Distribution
CloudFront Error Page and Cache Invalidation
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image