I have two ec2 instances running in the same VPC private IP addresses of them are as follows
- 10.0.1.74 - MongoDB intance
- 10.0.0.38 - Server 01
- 10.0.1.48 - Server 02
Is there a way to allow/open port 27017 of MongoDb instance to all the IP addresses from 10.0.0.0/24 and 10.0.1.0/24 subnets.
My current inbound settings are as follows.
If I use Server 01/02 public addresses here it works fine. But I want to allow access from the subnet level.
Is there any way to do that?