Networking

CloudFront VPC Origin

Delivers content from applications in VPC private subnets without exposing them to the Internet.

How it works

CloudFront VPC origins let a distribution reach supported private Application Load Balancers, Network Load Balancers, or EC2 instances in a VPC. The origin does not need a public IP address. The VPC must have an internet gateway attached, although CloudFront does not use it to route to the private origin; subnet and security requirements also apply.

When to use it

The origin is a private ALB, NLB or EC2 instance.

Real-world example

A retail application places order processing behind an internal Application Load Balancer in a private subnet. CloudFront reaches the origin through a VPC origin to serve customers without exposing the load balancer publicly.

Key facts

  • Supports private ALB, NLB and EC2 instances.
  • Without it, a public ALB/EC2 must allow the public IPs of the edge locations.

Common pitfall

A private origin still requires network preparation. The VPC needs an internet gateway and the private subnet needs an available IPv4 address for the CloudFront managed network interface; configure appropriate security groups.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • do not expose to the Internet

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning