Search code examples
amazon-web-servicesreverse-proxyamazon-cloudfrontamazon-vpc

Using Cloudfront as reverse proxy across multiple VPC's


I have 1 server 'A' that currently handles both static requests as well as requests made to the backend (ex. request path = /api*). However, the endpoint to this server 'A' is getting updated to server 'B' run by another team in a different vpc.

I would like to user CloudFront to route the backend requests originally made to server 'A' (/api*) to our backend server 'C'. Would this be possible to use Cloudfront across VPC's?


Solution

  • Yes. CloudFront exists completely outside of any of your VPCs and does not care if your origin servers are in a specific VPC or if they are even in AWS.