Join Shyamraj Selvaraju for an in-depth discussion in this video AWS regions and availability zones, part of Amazon EC2 Fundamentals.
- [Narrator] Welcome back. In this video, we'll talk about regions and Availability Zones. Let's begin. All right, so what do we mean by regions and Availability Zones? So Amazon cloud computing resources are hosted in multiple locations worldwide. And these locations are composed of what is known as regions and Availability Zones. What's a region? Well, each region is a separate geographical area.
And what's an Availability Zone? Every region has multiple, isolated locations which are known as Availability Zones. Every region is completely independent and every Availability Zone is isolated, but the Availability Zones within a region are connected through low-latency links. If this is the first time you're getting introduced to this concept, it may take a while to sink in. A region is nothing but a separate, isolated, and independent geographical area.
Within a region, Amazon has multiple facilities where the compute resources are hosted, and these facilities are known as Availability Zones. Availability Zones are isolated, but then they are connected with low-latency links. I have taken this diagram from the AWS website. It clearly shows the difference between regions and Availability Zones. In this diagram, we have two regions, one on the left and one on the right.
Each region has multiple Availability Zones. This diagram shows both regions having three Availability Zones. However, in reality, it is not necessary for regions to have three Availability Zones. There are regions which have only two Availability Zones for resiliency purpose, and there are regions like North Virginia which have up to six Availability Zones. And that's because AWS has more customers in that region.
As you can see, regions are completely independent while the Availability Zones are connected to each other. They are independent, but then they have high-speed connectivity. Let's dive deeper into regions. Each Amazon EC2 region is designed to be completely isolated from the other Amazon EC2 regions. This achieves the greatest possible fault tolerance and stability. When you view your resources, you only see the resources tied to that specific region.
This is because regions are isolated from each other and resources are not replicated across regions automatically. An AWS account provides multiple regions so that you can launch Amazon EC2 instances in locations that meet your requirements. For example, you might want to launch an EC2 instance in Europe to be closer to your European customers or to meet legal requirements.
I have the regions listed on the screen right now. Every region has a friendly name and it has a technical code as well. You can see on the left-hand side we have regions such as US East, which is North Virginia, US East again, which is Ohio, US West, North California, US West again, for Oregon, Canada, EU for Ireland, Frankfurt, and so on, and you can see their codes on the right-hand side. For example, North Virginia is us-east-1, Ohio is us-east-2, and so on.
If you're going to be working with the AWS graphical user interface that we access from a web browser, you don't necessarily have to remember the code for each region, however, if you intend to use Amazon EC2 from API, in that case, the code names need to be specified when you make your API calls. At the time of recording, there are about 17 regions and 45 Availability Zones, and I'm going to show you this in a few minutes.
Let's talk about Availability Zones. When you launch an EC2 instance, you can select an Availability Zone or you can let AWS select one for you. When AWS does the selection, the best one is selected based on system health and available capacity. An Availability Zone is represented by a region code followed by a letter identifier. For example, the region code for North Virginia is us-east-1.
North Virginia has six Availability Zones at the time of recording. The Availability Zones are represented as us-east-1a, us-east-1b, us-east-1c, and so on, all the way up to us-east-1f. So you have the region code followed by a letter, such as a, b, c, and so on. Now let me take you to the AWS console and show you how the global infrastructure of AWS looks like.
All right, I'm on the AWS website and I'm on this page that says AWS Global Infrastructure. As you can see, right now we have about 17 regions and 46 Availability Zones. When you watch this video, it could be possible they may have added more regions and more Availability Zones to serve more customers. And you can see over here on a world map how the regions and Availability Zones are spread out. These yellow circles are the regions, and the numbers within those circles indicate the number of Availability Zones.
For example, look at this one over here. This is Mumbai. It has two Availability Zones. You have Sydney, which has three Availability Zones. And you have North Virginia, which has six Availability Zones. The ones in green over here, they're the ones that are coming up. For example, they have regions planned for France, Sweden, Bahrain, and so on. If you'd like to see this web page, you can go to aws.amazon.com/aboutaws/globalinfrastructure.
I have a tab open over here for the AWS management console. This is how it looks like when you log in. And the correctly selected region can be seen from the top right-hand corner. So my region that has been selected right now is Singapore. AWS gives you the flexibility to choose the region of your choice. So I can just click on this place over here and you can see, I can select from all these regions over here. For example, if I wanted to launch an EC2 instance in let's say US West 2, which is Oregon, I could just change my region.
It takes me to US West 2, which you can see over here, and here as well, and I can start launching EC2 instances in Oregon. Well, that's it for this video. I'd like to thank you for watching and I'll catch you in the next video. Thank you.
- Amazon EC2 features
- Where is AWS available?
- Purchasing options for Amazon EC2
- Instances: on-demand, spot, reserved, and dedicated
- Instance family, class, and size
- Amazon Machine Image (AMI)
- Launching an EC2 instance
- Connecting from Linux, Mac, or Windows