How do I configure and attach a security group to my Elastic Load Balancing load balancer?
If you're using an Application Load Balancer, follow the instructions at Security Groups for Your Application Load Balancer.
If you're using a Network Load Balancer, update the security groups for your target instances, because Network Load Balancers do not have associated security groups.
- If your target type is an IP, add a rule to your security group to allow traffic from your load balancer to the target IP.
- If your target type is an instance, add a rule to your security group to allow traffic from your load balancer and clients to the target IP.
Note: Be sure that you associate at least one security group with each Classic or Application Load Balancer, and that the security group allows connections between the load balancer and associated backend instances.