By using AWS re:Post, you agree to the Terms of Use

Why AWS RDS service needs two subnets from different AZs


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.

asked 7 months ago44 views
2 Answers

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:


answered 7 months ago
  • 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.


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.

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions