[Lab] Working with Route 53 Part 5 - Geolocation Routing Policy

We already created a EC2 server setup and tried few routing policies. We deleted those A records. We will create one with failover policy now. We will also need to create health check within route 53 for this. This policy lets you chose where traffic will be sent based on geographical location of users.

 

Steps:

  1. Copy your ELB dns address and go back to Route 53

  2. Go to Healthchecks and click on Create Health Check.

  3. Give any name, keep what to monitor option as Endpoint, select specify endpoint by domain name,  add the ELB dns in the domain name section.

  4. In Advanced Configuration, select request interval option as Fast and failure threshold as 1. Click Next.

  5. Leave Create Alarm option as no, and click create.

  6. Now create a Health check configuration for the entire domain name (e.g. buddytutor.com) than dns. Everything else remains the same in first page. Click Next.

  7.  Select create alarm as yes. Select New SNS topic. Give a name and email. Click create.

  8. Go inside the hosted zone for our domain. Click on the domain to see current records. NS and SOA records should be already created as default.

  9. Click on create record set.

  10. Leave the name as blank to denote naked domain name.

  11. Select the record type as A – Ipv4 Address

  12. Click yes for Alias (as we are configuring for a naked domain name).

  13. Click inside Alias target and select the ELB that is in the closer region. Remember that we have two ELBs, one in closer region and one in faster region.

  14. Select the routing policy as Geolocation

  15. Select the continent in which your closer region is part of. Leave other options as is and click create.

  16. Create another record for farther site, with policy as Geolocation and location as Default (Default means everything else).

  17. Try running the domain url in the browser. It should go to primary site within your continent. You may also use a vpn to login to your far away region (or any other continent than the primary as we have selected default) and may try running the domain url again. It should now go to the secondary site.

  18. Cleanup all ELBs and EC2 instances. Otherwise you may incur costs.

 

Exam Tip

  1. You should chose ALIAS record over CNAME in most cases when working with AWS.

Learn Serverless from Serverless Programming Cookbook

Contact

Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About

CloudMaterials is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Microsoft Azure and Amazon Web Services (AWS).

I like to write and I try to document what I learn to share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream