Issues in connecting AWS Cloudfront to app hosted on AWS Elastic beanstalk

22 Views Asked by At

I have an app hosted on beanstalk environment(Blazor Server app), right now it is being served as: Server(created by EBS) -> ALB(created by EBS) -> Route53(maps a CNAME record to the beanstalk domain).

I am planning to overcome the latency by introducing Cloudfront between the load balancer and route 53.

Since the load balancer is dynamically created by EBS, it doesn't seem reliable connecting Cloudfront to it as it may get replaced in the future.

Is there any way I can do what I am trying? Can the beanstalk domain be used as an origin for Cloudfront? If yes, how? I haven't seen any documentation on it.

I have checked documentation but I couldn't find anything on this particular topic straightaway.

0

There are 0 best solutions below