Home > Software design >  Inbound rules for security groups
Inbound rules for security groups

Time:09-14

I have an ec2 instance, with a security group, let's call it A

In Security Group A, I defined a number of inbound rules

Is there a way to define a second security group, let's call it B, and set some inbound rules in it, and then have security group B, as one of the inbound rules for security group A?

AWS allows me to do that, but it's not working. As in, I added my home IP address, to the inbound rules for security group B, but I can't reach the ec2 instance, unless I add my home IP address to the security group A.

CodePudding user response:

When you add another security group like that, you are saying that the AWS resources that belong to security group B can access the resources in security group A. You aren't combining the rules into a single security group somehow.

  • Related