How To Find Which AWS Region Is Closest To You?
Tags: aws, devops, cloud
Published: 2021-07-19 07:24:04

---
title: How To Find Which AWS Region Is Closest To You?
published: true
date: 2021-07-19 07:23:59 UTC
tags: aws, devops, cloud
canonical_url: https://openupthecloud.com/find-aws-region-closest/
---

You can’t do anything in AWS without picking a region. You can’t navigate the console, launch a server, or even [use the SDK](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-region.html). AWS resources have to exist in some physical location. So where should you pick? And based on what?

![Which AWS Region?](https://openupthecloud.com/wp-content/uploads/2021/06/aws-regions-760x425.png)

Many first-time AWS users pick the region closest to them. This is okay to get started, but you should also understand the implications (such as cost, latency, resilience, and regulations) when choosing an AWS region.

**Which AWS region is closest to you?** Review the [AWS global infrastructure](https://aws.amazon.com/about-aws/global-infrastructure/) map to see your geographical distance to AWS regions. Use [cloudping.info](https://www.cloudping.info/) to see latency from your browser, [cloudping.co](http://cloudping.co) for inter-region latency, or [awsping](https://github.com/ekalinin/awsping) (command line tool) to see latencies from a remote server.

## The Closest AWS Regions To Major Cities

Some of you will want to just get started quickly and don’t need to know the fine details involved in picking a region. If that’s you, here are the closest geographic regions to some major cities around the world. Take your pick.

| Location | AWS Region |
| --- | --- |
| America (San Francisco) | Oregon / Northern California |
| America (New York) | Northern Virginia / Ohio |
| United Kingdom (London) | London |
| Russia (Moscow) | Stockholm |
| Israel (Tel Aviv) | Frankfurt |
| India (New Delhi) | Mumbai |
| Australia (Sydney) | Sydney |

If you want to calculate your AWS region more scientifically than picking based on geography alone there are a few techniques and tools that we’ll go through that you can use to create a shortlist of suitable regions.

When you have that shortlist, there are some factors to consider such as cost and functionality differences which we’ll also cover. Let’s start by looking at the different ways to find your closest region more accurately.

## How To Shortlist AWS Regions

Your first stop when choosing an AWS region should be the [AWS Global Infrastructure](https://aws.amazon.com/about-aws/global-infrastructure). On this part of the AWS website, you’ll find important details for each AWS region, such as the number of availability zones per region and proximity to edge locations. From here you can start to make a shortlist.

![AWS Global Network Map](https://openupthecloud.com/wp-content/uploads/2021/06/awsglobalnetwork.png)

Don’t be fooled by choosing an AWS region based solely on geographic proximity (i.e drawing a line between two locations). Because data doesn’t travel the internet in direct lines, it has to follow the existing infrastructure of the internet within countries and between them.

![Global Internet Infrastructure Map](https://openupthecloud.com/wp-content/uploads/2021/06/global-internet-infra.png)

Take a look at the [infrapedia global internet infrastructure map](https://www.infrapedia.com/app) (above), to see what I mean. You’ll want to take the global infrastructure into account when choosing a region, and consider running latency tests before finalising your choice (more on how to do that below!).

## Find Your Nearest AWS Region From Your Browser

A neat way to find the AWS region closest to your current location is the website [cloudping.info](https://www.cloudping.info/), created by Michael Leonhard. Cloud ping will show you all the latencies to different AWS regions straight-in your browser.

![Cloud Ping Results](https://openupthecloud.com/wp-content/uploads/2021/06/cloudping.png)

The main downside of this approach is that it doesn’t allow you to test speeds to regions from arbitrary locations other than your own. To test latencies from different locations we’ll need a tool we can run on different machines.

## Find Your Nearest AWS Region Via The Command Line

If you need to automate the process of finding your nearest region, you can use [AWS ping](http://git@github.com:ekalinin/awsping.git), by Eugene Kalinin, which you can find on GitHub.

![AWS Ping Region Latency Results](https://openupthecloud.com/wp-content/uploads/2021/06/awsping-github.png)

The source code for AWS ping is quite simple (written in Go) should you needed to modify or extend it to suit your needs. You can use AWS ping to test latencies from different locations, or latencies between your shortlisted regions.

![AWS Ping CLI Output](https://openupthecloud.com/wp-content/uploads/2021/06/awsping.png)

## Find Latencies Between All AWS Regions

But, sometimes, the latency you’re after is the latency between the AWS regions themselves, for instance, if you already have a region already chosen.

![Latencies Between All AWS Regions](https://openupthecloud.com/wp-content/uploads/2021/06/region-latency.png)

A good tool for seeing latencies between regions is [cloudping.co](https://www.cloudping.co/grid) (a different one this time!) created by [Matt Adorjan](https://twitter.com/mda590).

## Factors Which affect The AWS Region You Should Choose

Not all AWS regions are the same with regards to cost and functionality. We’ve looked at some ways you can shortlist AWS regions, but we’ve mostly discussed geographical distance and latency. Let’s now take a look at the factors to consider before finalising your AWS region choice.

### Factor 1: Latency

As we’ve already discussed, latency to your customer is an important factor when choosing an AWS region. Be sure to factor in the internet infrastructure surrounding your chosen region, and not just the geographical distance, doing some testing of your own where you can. You’ll also want to test the latency between regions if you choose more than one.

If latency is important to you, there also other AWS services and tools that are worth researching, such as [AWS local zones](https://aws.amazon.com/about-aws/global-infrastructure/localzones), and [AWS edge locations](https://aws.amazon.com/edge/services/), which allow you to lower the physical distance to your customer, and also advanced routing techniques like [latency and geo-based routing](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html) which allow you to dynamically find the most performant service to route your customers.

### Factor 2: Cost Differences

Not all services cost the same across all regions— the differences in the price can be quite drastic where your choice of region could nearly double your cloud bill. The best way to understand the variation is to add your predicted or current architecture into the [the AWS cost calculator](https://calculator.aws/#/) to compare between regions.  
 ![Comparing the price of two EC2 instances in two regions](https://openupthecloud.com/wp-content/uploads/2021/06/differing-aws-costs.png)

To give you an idea of the potential price differences, a **t4g.xlarge (4 vcpus, 16 GiB RAM) EC2 instance** with a **30GB EBS (GP2)** will cost you **64.54 USD** in North Virginia, as compared with **103.72 USD** in Cape town.

Additionally, an often-overlooked cost factor is data transfer, which can be notoriously difficult to predict. Again, to get a high-level estimate of predicted transfer costs your best bet is to use the [AWS cost calculator](https://calculator.aws/) but instead of adding a service, search for “Data Transfer”.

![Comparing data transfer costs between AWS regions](https://openupthecloud.com/wp-content/uploads/2021/06/data-trasnfer-regions.png)

Now of course most of you at this point will be thinking: “Which is the cheapest AWS region?” But pricing varies based on region, so it’s hard to definitively say which AWS region is cheapest. That being said, North Virginia is commonly reported as the cheapest region anecdotally.

### Factor 3: Functionality Differences

Not all regions are given equal treatment when it comes to service rollout. AWS states: “Our general policy is to deliver AWS services, features and instance types to all AWS Regions within 12 months of general availability.” ([source](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/)).

Whilst this is true in many cases, anecdotal evidence shows that some regions can wait years before a service becomes available. So if you want a cutting-edge service, it’s best to use one of the more actively updated regions (e.g. us-east-1). Find the [full list of AWS services available in each region](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/?p=ngi&loc=4) here.

### Factor 4: Stability Differs Per Region

Not all regions have the same stability. The availability of services between regions has been known to differ, with North Virginia (us-east-1) being notoriously unstable as most service updates are rolled out to that region first.

{% twitter 1331690522373709829 %}

<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

Because AWS doesn’t publish any region-specific availability data it’s hard to do a scientific region stability comparison. However in line with general best practices, for high availability, your workloads should be balanced across multiple availability zones, or even regions for redundancy.

### Factor 5: Governance Requirements

The final factor to consider when choosing an AWS region are your legal obligations. For compliance with policies such as [GDPR](https://gdpr.eu/) it could be necessary for you to store or process data within a certain region, so don’t forget to consider the requirements for locating your data and services when making your choice on which AWS region to choose.

## Choose The AWS Region Right For You

Quite a bit of analysis can go into finding the closest, best-fitting AWS region. If you’re just starting with AWS you can choose a region based on practicality. However, when it comes to moving services to production, consider things like latency, cost and functionality before you make your final decision.

If you’re looking to learn more about AWS and the cloud, you should also check out [My (Highly) Recommended Books & Courses](https://openupthecloud.com/recommended-resources/), and check out the monthly [Open Up The Cloud newsletter](http://newsletter.thedevcoach.co.uk/) to stay up to date with cloud news!

---

Hey! 👋 If we haven't met, let me introduce myself, I'm [Lou](https://twitter.com/loujaybee), and I created _[Open Up The Cloud](http://thedevcoach.co.uk/)_ to help you get your start, and grow your career in cloud 🚀. 

If you're interested in cloud, the best way to keep up-to-date with news, and everything I publish is via the [monthly cloud newsletter](http://newsletter.thedevcoach.co.uk/). And find _Open Up The Cloud_ on [YouTube](https://www.youtube.com/channel/UCAklaE5D59xWtip-3Jwa7xA), [Twitter](https://twitter.com/openupthecloud), [Instagram](https://www.instagram.com/openupthecloud)... wherever you like to hang out! 😄

---

The post [How To Find Which AWS Region Is Closest To You?](https://openupthecloud.com/find-aws-region-closest/) appeared first on [Open Up The Cloud](https://openupthecloud.com).