All services

Networking & Content Delivery

Amazon CloudFront

Global, low-latency CDN backed by 600+ edge locations.

Official docs

Overview

CloudFront caches and accelerates web content close to users, integrates with S3, ALB, API Gateway, and supports Lambda@Edge / CloudFront Functions for edge logic.

When to use it

  • Speed up static sites and APIs globally
  • Protect origins behind WAF + CloudFront
  • Serve QA preview environments on custom domains with HTTPS

Setup

  1. Console → CloudFront → Create distribution.
  2. Choose origin (S3 bucket, ALB, or custom HTTP).
  3. Configure cache behaviors, TTLs and a default certificate (ACM).
  4. Attach WAF and logging to S3 if required.

How to use

Invalidate cache
aws cloudfront create-invalidation --distribution-id E123 --paths '/*'

QA use cases

  • Run geo-distributed performance tests verifying cache hit ratios via x-cache header.
  • Validate signed URLs / cookies for protected QA preview builds.