Philip Shangguan
Philip Shangguan

Reputation: 527

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

Upvotes: 4

Views: 4583

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269101

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.

Upvotes: 9

Related Questions