We have a static site to be exposed via AWS CloudFront. However, we want to restrict access to anyone who is on the VPC only. How can we achieve this?
We did some research but the only viable solution we saw was putting a WAF in front of the CloudFront.But is this the correct way to achieve this?
Signed URLs is not an option for us, we need the site to work as a normal website to the users.
We have uses in different parts of the world, who connects to the same VPC. But the real reason for this is a bit complicated. It's not a simple set of static files & some company policies, etc in the play.
We have a lot of VPC peering or transit gateways which is handled by an external team, and we have very little visibility. Thus WAF with IP range limiting is hard to implement or not possible.