Skip to content

CloudFront - Internal ELB Origin

0

Hi all, By Documentation to be able to use ELB as an Origin for a CloudFront Distribution it should be internet-facing. the question is why CloudFront is showing also Internal Load Balancers between the list of possibile Origin Domains that can be selected during the creation of a new Origin ? there is a way to use CloudFront with Private resources ?

3 Answers
2
Accepted Answer

No, you can't use an internal-only load balancer as an origin for CloudFront.

Why does it show in the list? Because the console is retrieving a list of all load balancers but there's no particular flag that says "this is an internal load balancer" versus "this is an internet-facing load balancer". That's determined by the subnet, route tables and public IP address assignment.

AWS
EXPERT
answered 3 years ago
EXPERT
reviewed a year ago
AWS
EXPERT
reviewed 3 years ago
  • Hi,

    Is that still the case? When you create a load balancer now, you get am option to flag it internet-facing or internal.

    Thanks

  • Yes, my internal and public-facing are marked as such but both still list as possible origins. Seems like AWS should be able to tell if they have an public IP associated with it. Not perfect but better.

0

Yes, you can use an internal-only load balancer as an origin for CloudFront by leveraging CloudFront’s VPC Origin feature.

answered 10 months ago
0

This is now available using CloudFront VPC origins. You can use Application Load Balancers (ALBs), Network Load Balancers (NLBs), and EC2 instances in private subnets as VPC origins.

AWS
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.