DocumentDB connection timeout after restoring snapshot to new VPC

0

I had VPC("nonshima") and documentDB("nonshima-db-int") which had about 10GB of data in it. I created a new VPC("nonshima-124") with same configuration of nonshima including route-table. I wanted to move my nonshima-db-int into nonshima-124, i realized that i can not once a DocumentDB cluster is created, the VPC cannot be changed. Source: 2nd answer provided by Mihai A

So i created a manual snapshot and restored it with nonshima-124 VPC. Now my applications are not able to connect to the new cluster that was created using the snapshot

Note: security group and subnet group are prefect for newly created cluster using snapshot.

I also noticed that if i create a new cluster in nonshima-124, my applications are able to connect.

1개 답변
0

Hello.

Where is the application hosted?
Is it hosted within the same VPC as the newly restored DocumentDB?
If the VPCs are different, you will need to connect with VPC peering and configure routing.
https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html

If the VPCs are the same, there seems to be a problem with the settings around the security group.

profile picture
전문가
답변함 6달 전
  • the newly restored DocumentDB is in new VPC. as the newly restored DocumentDB is created using snapshot of old db, do we still new VPC peering?

    just to be clear: old DB(in old VPC) snapshot is used to create new cluster in new VPC

  • In which VPC is the application accessing DocumentDB hosted? If it is not hosted within a new VPC, settings such as VPC peering are required.

  • yes the applications are within the new VPC. i also tried to create a EC2 instance in the new VPC(configured security group as well) and connect to DocumentDB, and i still get connection timeout. this concluded me that not just my application but any of the servers are unable to connect to the DocumentDB cluster created via the restored snapshot

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

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

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

관련 콘텐츠