Advertisement
Beginner AWS, Amazon CloudFront & Content Delivery

What types of origins can CloudFront distribute content from?

Short answer

CloudFront can pull content from many types of origins including Amazon S3 buckets for static files, Elastic Load Balancers or EC2 instances for dynamic web applications, and even servers outside of AWS entirely, meaning you are not limited to only distributing content that…

Save AWS mock interview
Advertisement
AModel answer
CloudFront can pull content from many types of origins including Amazon S3 buckets for static files, Elastic Load Balancers or EC2 instances for dynamic web applications, and even servers outside of AWS entirely, meaning you are not limited to only distributing content that already lives inside AWS.
Example

aws cloudfront create-distribution --origin-domain-name myapp.example.com

Real-world example
An online store uses CloudFront with two different origins, an S3 bucket for its product images and an Application Load Balancer for its dynamic checkout pages, all delivered through a single CloudFront distribution.
Likely follow-ups
  • Can a single CloudFront distribution have multiple origins?
  • How do you configure CloudFront to route different paths to different origins?
Related topics