- Newest
- Most votes
- Most comments
Unfortunately, there isn't a direct way to force CloudFront to serve content from a specific region while still allowing access from other regions. CloudFront is designed to automatically route requests to the nearest edge location to minimize latency. HOWEVER, CloudFront offers a feature called "Price Classes" that allows you to exclude more expensive edge locations from your distribution while still serving content to all users globally. SO By configuring your CloudFront distribution to use Price Class 100 (North America and Europe only) [See Doc below], requests from South American users will still be served, but they'll be routed to edge locations in North America rather than using the more expensive South American edge locations.
See this doc : https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_cloudfront/PriceClass.html
How to Implement, of-course after doing your due diligence and testing:
- Open the CloudFront console
- Select your distribution
- Edit the distribution settings
- Change the "Price Class" setting from "Use All Edge Locations" to "Use Only North America and Europe"
- Save your change
answered a year ago

Thank you so much, Zouhair!