Creating a Security Group for the Load Balancer

Similar to what we did for the RDS database, we also need to create a security group for the load balancer to use it effectively.

Properties of the security group

Before we create the security group, let’s quickly discuss which rules are needed. The load balancer sits between the user and the WordPress instances and forwards HTTP traffic on port 80.

Inbound rules

First of all, we need to allow our users to access the load balancer, so we need an ingress rule that allows traffic from everywhere. It needs to support HTTP, which is based on TCP. Therefore, the ingress rule should be the following:

Get hands-on with 1400+ tech skills courses.