Menu

Amazon CloudFront Basics: Serve Content Fast and Keep Your S3 Origin Private
📰

Amazon CloudFront Basics: Serve Content Fast and Keep Your S3 Origin Private

DEV Community: beginners·Robin Sishodia·7 days ago
#Yoi1Mabj
#devtobeginners#devto#dev#bucket#cloudfront
Long article (470 words) — no AI summary yet.
Reading 0:00
15s threshold

Amazon CloudFront is the AWS content delivery network (CDN). It keeps copies of your content in locations close to your users, so pages and files load faster and your origin gets fewer requests. It pairs naturally with S3 and Route 53 from the earlier posts.

What it does

Caches content at edge locations around the world.

Pulls content from an origin , such as an S3 bucket, a load balancer or any web server.

Serves content over HTTPS with a certificate from AWS Certificate Manager.

Lets you keep an S3 bucket private while the site stays public.

Key concepts

Piece What it is

Distribution The CloudFront setup that has its own domain name

Origin Where CloudFront gets the content, such as S3 or an ALB

Edge location A site close to users that caches content

Cache behavior Rules for paths, caching and allowed methods

TTL How long an object stays cached

Origin access control (OAC) Lets CloudFront read a private S3 bucket

Invalidation A request to remove cached objects before the TTL ends

Good to…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.