Sumanth Shetty
Sumanth Shetty

Reputation: 677

Connecting private load balancer to cloud front distribution?

I have a python flask application hosted on Elastic Beanstalk (Private Load Balancer).

I wanted to integrate Elastic Beanstalk with Cloudfront so that the Web application can be opened using cloudfront distribution.

How can i achieve this?

Upvotes: 1

Views: 1050

Answers (2)

nu_popli
nu_popli

Reputation: 1980

You can now access Private (Internal) Application Load Balancers via CloudFront with the newly introduced VPC Origins.

In the CloudFront console:

  • Create a VPC Origin with and add ARN of your ALB (or EC2) as Origin.
  • Add this as Origin to you CloudFront Distribution.

Your ALB (and hence the Beanstalk) will now be accessible via your CF Distribution.

Upvotes: 0

Marcin
Marcin

Reputation: 238727

ALB must be public. From docs:

Although you can use a signed URL to distribute content from a custom origin, for CloudFront to access the custom origin, the origin must remain publicly accessible.

Upvotes: 2

Related Questions