Our deployment will consist or two EC2 instances configured with regional availability. Route 53 provides the following routing types:
- Simple routing: Use this routing for simple servers, this is used for simple resolution
- Geolocation routing policy: Route traffic with the minimal latency
- Geoproximity routing policy: This is configured via traffic flow for complex routing
- Multivalue answer routing policy: Randomize up to 8 records
- Weighted routing policy: Assign specific weights to records (for example, 80% - 20% split)
- Failover routing policy: For active-passive scenarios
We will use the failover routing policy to create the following architecture:
Primary |
N. California |
Secondary |
N. Virginia |
To provision your environment launch an EC2 instance on each region (us-east-1 and us-west-1). You can use the following script for the user data from user-data...