4

Is there a way to connect one database in a private subnet in a VPC to another database in a private subnet in another VPC? Both have same master account but separate accounts each.

Shashi
  • 265
  • 1
  • 4
  • 13

1 Answers1

1

This could be done with VPC Peering.

A direct connection between the VPCs is established and all traffic is conducted with private IPV4 addresses. You can even do this with VPCs in different regions, where the traffic is encrypted and routed via the AWS backbone.

Peering is established when the Owner of the first VPC sends a peering request to the owner of the second VPC, and they can reside in different accounts.

enter image description here

Adi Dembak
  • 2,433
  • 2
  • 18
  • 26
  • But both are in different accounts, do we need to give cross account role or just vpc peering would suffice? – Shashi Jun 16 '20 at 05:49
  • It works with different accounts. The Owner of one of the VPCs sends a peering request to the owner of the second VPC. – Adi Dembak Jun 16 '20 at 05:57
  • 1
    Thank you so much, it cleared my doubt. I have few more questions on different topics of AWS. Will ask them in different thread. – Shashi Jun 16 '20 at 05:59