Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aws private subnets connectivity

I have a VPC, inside there is a public subnet and two private subnets. I configured security groups as well as route tables and I can access ES2 instances in the two private subnets from the instance in the public subnet.

Now I want to know if I can directly connect to the instances in one private subnet from the instances in the other private subnets. If yes, how.

Thanks, Philip

like image 229
Philip Shangguan Avatar asked Oct 14 '25 20:10

Philip Shangguan


1 Answers

All subnets within a VPC can communicate with each other by default. In fact, the only way to prevent this is by defining Network ACLs that Deny traffic.

So, yes, an instance in one private subnet can connect to an instance in another private subnet (in the same VPC). Just use the Private IP address to connect.

like image 64
John Rotenstein Avatar answered Oct 17 '25 11:10

John Rotenstein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!