Origins & Integrations

Content Sources and AWS Service Connectivity

S3 Origins

Use S3 buckets as origin servers for static content delivery.

Static website hosting
Origin Access Identity integration
Automatic scaling

Custom Origins

Use any HTTP server as origin for dynamic content and APIs.

EC2 instances
Application Load Balancers
On-premises servers

Lambda@Edge

Viewer Request

Modify requests before CloudFront forwards to origin

Origin Request

Modify requests before sending to origin server

Origin Response

Modify responses from origin before caching

Viewer Response

Modify responses before returning to viewer

Origins & Integrations Exam Tips

  • • S3 origins best for static content, custom origins for dynamic content
  • • Lambda@Edge runs at four different CloudFront events
  • • OAI restricts direct S3 access when using S3 as origin
  • • Custom origins can be EC2, ALB, or any HTTP server
Previous: Global Accelerator Next: Service Limitations