- Newest
- Most votes
- Most comments
Hi Arjun,
A few components that can potentially affect access here. Feel free to add additional details if needed.
Assuming that the peering connection is up/active, you would still need to route the CIDR blocks statically to reach hosts in the peered VPCs. You mentioned that you allowed access in MongoDB, but you also need to make sure you have the appropriate access in your Security Groups and VPC NACLs.
Also, if these hosts are referencing each other via DNS hostnames, you may need to enable DNS hostnames in the associated VPCs.
From the public documentation regarding DNS: "With the default VPC peering connection options, if EC2 instances on either side of a VPC peering connection address each other using a public DNS hostname, the hostname resolves to the public IP address of the instance. To change this behavior, enable DNS hostname resolution for your VPC connection. After enabling DNS hostname resolution, if instances on either side of the VPC peering connection address each other using a public DNS hostname, the hostname resolves to the private IP address of the instance."
Hope this helps, if not, please post some additional details
Thanks!
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago