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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠