Reputation: 53
I want to connect Cloudfront to an internal load balancer which is connected to my application. Inbound traffic comes from a third party application so I cannot only use the internal load balancer. The process would be:
third party app <-> cloudfront <-> internal load balacner <-> my application
However, I am not sure if Cloudfront can access the load balancer in my VPC. Any ideas how that would that be setup?
Upvotes: 4
Views: 5382
Reputation: 808
Starting from 2024/11/20, you can now use VPC Origin for CloudFront
So you can make as origin a private ALB only accessible from your CloudFront.
Why this solution is the most suitable to this situation :
Upvotes: 3
Reputation: 35238
Unfortunately at this time there is no way to connect to private AWS resources, there are 2 types of Origin.
Just because your load balancer is public you can still enhance your security to reduce the threat of an unknown source accessing your load balancer.
You could add a custom header to your requests containing a secret. Then if you use an application load balancer attach a WAF with a default to block all requests. Finally add an allow rule to WAF to allow where the header has a value of your secret.
Upvotes: 4