A load balancer distributes incoming application traffic across multiple EC2 instances in multiple Availability Zones.Elastic Load Balancing detects unhealthy instances and routes traffic only to healthy instances.A listener checks for connection requests from clients, using the protocol and port that you configure, and forwards requests to one or more registered instances using the protocol and port number that you configure.A security group acts as a firewall that controls the traffic allowed to and from one or more instances. When you launch an EC2 instance, you can associate one or more security groups with the instance.
To restrict inbound traffic from your load balancer to your container instances.
1. Sign in to the AWS Management Console.
2. Navigate to EC2 dashboard at https://console.aws.amazon.com/ec2/.
3. In the navigation panel, under NETWORK &