Search code examples
amazon-web-servicesamazon-elastic-beanstalkload-balancingamazon-cloudfront

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?


Solution

  • 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.