...

/

Creating a Security Group for the Load Balancer

Creating a Security Group for the Load Balancer

Learn to create 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:

Ingress Rule

Destination

Port

Protocol

10.0.0.0/0

80

TCP

Outbound rules

The load balancer also needs to be able to access our WordPress instances. Therefore, we need an outbound rule ...