A subnet group is a collection of subnets running on Amazon Virtual Private Cloud (VPC) environment, allows you configure inbound and outbound rules
In this step, we will create two Security Groups (SGs): one for public subnets (used by EC2 instances) and one for private subnets (used by RDS instances).
Subnet Name | Direction | Protocol | Port Range | Source/Destination |
---|---|---|---|---|
public-sg | Inbound | SSH (TCP) | 22 | My IP Address |
public-sg | Inbound | ICMP | All | 0.0.0.0/0 |
public-sg | Inbound | TCP | All | 0.0.0.0/0 |
public-sg | Inbound | HTTP | All | 0.0.0.0/0 |
public-sg | Inbound | HTTPS | All | 0.0.0.0/0 |
public-sg | Outbound | All | All | 0.0.0.0/0 |
private-sg | Inbound | MySQL (TCP) | 3306 | 0.0.0.0/0 |
private-sg | Outbound | All | All | 0.0.0.0/0 |