Reputation: 873
considering the statement :
When adding an RDS instance to VPC, there needs to be three subnets in the subnet group across three different AZs for that VPC
what is the difference between three subnets and AZs here?
I know that we need AZs for any RDS instance and it is created automatically by amazon at deployment time. So, this of course means that there should be one subnet in each three AZs to enable access to RDS replicas and instances. Or it means that each AZ should have three subnets created within to enable that?
Upvotes: 5
Views: 14419
Reputation: 1161
AZ s are "physically separated and isolated" from each other within a given region. An AZ can have one or more data center(s), each data center being a distinct physical location. VPC s, on the other hand, are "logically isolated" within a given region, by assuming blocks of IP addresses.
Just like a region contains multiple AZs, a VPC is composed of multiple subnets for high availability.
The connection between the physical and logical is that a VPC exists within a given region, and a subnet exists within a given AZ, as Vlad Bezden explained.
Upvotes: 0
Reputation: 89597
Amazon provides 99.95% RDS availability
Multi-AZ configurations for MySQL, MariaDB, Oracle, and PostgreSQL are covered by the Amazon RDS Service Level Agreement ("SLA"). The RDS SLA affirms that AWS will use commercially reasonable efforts to make Multi-AZ instances of Amazon RDS available with a Monthly Uptime Percentage of at least 99.95% during any monthly billing cycle.
In order to achieve that database has to be replicated in three different AZ. That is the reason why Amazon requires three subnets in three AZ. The relationship is:
Upvotes: 11
Reputation: 2637
You can have as many Subnets as you like in each AZ. By default AWS creates one VPC containing one Subnet in each AZ. The number of AZ varies from region to region.
The quote you gave in your question is saying that you must have three subnets, that these three subnets must all be be in different AZ but all three subnets must be in the same VPC.
Upvotes: 5