I have resources in multiple AWS regions, and I want users to be routed to the resource that's geographically closest to them. How do I do that?
To route client requests to the resource endpoint geographically closest to the source of the request based on the client’s location or the client’s resolver location, you can use an Amazon Route 53 hosted zone with a geolocation routing policy:
- (Optional) If you haven't already, create a Route 53 hosted zone.
- In the Route 53 console, open the Hosted zones pane, select your hosted zone, and choose Go to Record Sets.
- Choose Create Record Set, and fill in the fields with the following:
For Name, enter www.
For Type, choose A-IPV4 Address.
For Alias, choose Yes and select a resource endpoint.
For Routing Policy, choose Geolocation, and for Location, choose the geographic region that you want to direct to the endpoint you selected.
For Set ID, enter a unique friendly name for the record set that's meaningful to you.
- Repeat step 3 for any other geographic regions and endpoints you to use.
Note: To choose an endpoint for traffic to be routed to from regions other than the ones you specifically selected, create a new record set by using these steps, but choose Default under Location.