Creating a CloudFront Distribution with Regional S3 Origins

1 hour
  • 4 Learning Objectives

About this Hands-on Lab

In this lab, we will be setting up a S3 bucket to serve as an origin for our CloudFront distribution by creating a S3 bucket, making it public, and creating a CloudFront distribution to help keep your site safer.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an S3 Bucket with Content

Create an S3 bucket that will hold your content and upload a JPEG file.

Add a Bucket Policy and Add a Tag on JPEG

Make the bucket pulic with a bucket policy and add a public tag to your JPEG file.

Create a CloudFront Distribution

Create a CloudFront distribution and set your JPEG image as the default root object.

Navigate to the Distribution

Once your distribution has been deployed, navigate to your lovely JPEG image.

Additional Resources

Some users are reporting latency with loading objects within your environment. Your boss has tasked you with creating a solution to cache content and reduce latency. Let's go!

This lab will use this JPEG image as the file to be uploaded into your S3 bucket.

Public access with tag:

  "Version": "2012-10-17",
  "Statement": [
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::DOC-EXAMPLE-BUCKET/*",
      "Condition": {
        "StringEquals": {
          "s3:ExistingObjectTag/public": "yes"

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?