CloudFront

Notes based on Stéphane Maarek's Udemy course.

CloudFront

CloudFront Origins

Restrict access to S3

CloudFront Geo Restriction

CloudFront vs S3 Cross Region Replication

CloudFront S3 CRR
Global Edge Network Must be configured for each region where we want to replication to happen
Files are cached for a TTL Files always latest
Great for static content which must be available everywhere Great for dynamic content the must be available at low latency in few regions

CloudFront Caching

CloudFront Security

HTTPS

CloudFront Signed URL / Signed Cookies

CloudFront Signed URL vs S3 Pre-Signed URL

CloudFront Signed URL S3 Pre-Signed URL
Allows access to a path, no mather of origin Issues a request as the person whe pre-signed the URL
Account wide key-pair, only root can manage it Uses the IAM key for the signing principle
Can filter by IP, path, date expiration Limited lifetime
Can leverage caching features