DEV Community

Cover image for Something You Didn't Know About AWS Availability Zones
Ileriayo Adebiyi
Ileriayo Adebiyi

Posted on

3 1 1 1 1

Something You Didn't Know About AWS Availability Zones

DataCenters

An AWS Datacenter

An AWS region e.g. us-east-1 has physical data centers where the actual infrastructure lives, e.g. us-east-1a, us-east-1b, etc.

But there's something you may not have known:

Availability Zones (AZs) in an AWS account may not always refer to the same data center(s) in a different AWS account.

In other words, for a region us-east-1, the AZ us-east-1a in one person's account (Account A) may not be in the same data center as the AZ us-east-1a in another person's account (Account B).

To ensure that resources provisioned in different AWS Accounts are placed in the same physical location, using the AZ name is not a reliable option.

Why Should You Care?

  1. Latency: In a multi-account environment, where you have different AWS accounts for different purposes, you may require a service in one account to connect with another service in a different account. By placing those services in the same physical data center, the number of hops is reduced.

  2. Compliance: In other to comply with company or national policies, some services may be required to stay in a particular location. Placing those services in the same region is a great way to ensure compliance, and you can go further to ensure that they are in the same physical data center.

If you care, then there is a solution -- Zone IDs!

Availability Zone ID

An Availability Zone ID is an ID that is consistent across all AWS accounts. An AZ Zone ID in Account A is the same physical data center for the same Zone ID in Account B.

  • AZ Zone Name is not necessarily the same physical location in different AWS Accounts
  • AZ Zone ID is the same physical location in different AWS Accounts

To get the availability zone ID, you can use the following command:

aws ec2 describe-availability-zones --region us-east-1

Availability Zone ID

You can now proceed to use the Zone ID reliably.

Cheers!

If you liked this, let me know by reacting to this post or leaving a comment.

You can also Follow me on:

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay