Why AWS RDS service needs two subnets from different AZs

0

As part of our project we are using AWS RDS PostgreSQL service. While creating RDS service AWS mandated to create two sub-nets from different AZ's (ex: us-west-2a and us-west-2b). But we have only one sub-net. Is there any way to overcome this problem.

已提问 2 年前714 查看次数
2 回答
1

RDS is built to be Multi-AZ by design, as the best practice for any production environment must use this approach. This will allow you to be sure that in case of an event in one AZ your database will be able to fail-over to the second one. I know that probably you are trying to deploy just one single RDS instance in a single AZ, but the system requires to configure two subnets, as maybe in the future you want to transform your RDS instance in a Multi-AZ instance, this is the reason why you need always two AZ. Defining Subnets is not a process that have any cost, some times the cost is related to IP address availability, but nothing else. So, i am afraid you will have to setup two subnets in two different AZ.

All this is explained in AWS documentation here: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html

best.

profile pictureAWS
已回答 2 年前
  • Thanks for the nice explanation. Is there any way I can create RDS service using sub-nets created in the Single AZ.

  • @AWS-User-8752529 You will need to create the subnets in different AZs.

0

That seems to be the common pattern for some other resources. Let's say your RDS cluster contains 2 db instances, one for writer and the other for reader. For better availability, they better be located in different zones from each other.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则