Application Load Balancer for an EC2 Instance: {ERR_CONNECTION_TIMED_OUT}

The Nautilus DevOps team is currently working on setting up a simple application on the AWS cloud. They aim to establish an Application Load Balancer (ALB) in front of an EC2 instance where an Nginx server is currently running. While the Nginx server currently serves a sample page, the team plans to deploy the actual application later.

  1. Set up an Application Load Balancer named datacenter-alb.
  2. Create a target group named datacenter-tg.
  3. Create a security group named datacenter-sg to open port 80 for the public.
  4. Attach this security group to the ALB.
  5. The ALB should route traffic on port 80 to port 80 of the datacenter-ec2 instance.
  6. Make appropriate changes in the default security group attached to the EC2 instance if necessary.

I verified everything, but I am still not able to access the URL,


this was the error, facing every time.

thukhakyaweThu Kha Kyawe I followed your each step pin to pin.

facing the same issue.

let me know if somebody has completed this task.

Assist me.

Hi @Nagasharath

Please refer to this thread, it should help.

@Santosh_KodeKloud Thank you so much.

1.Go to EC2 → Load Balancers → datacenter-alb → Listeners

You must have:

Protocol: HTTP
Port: 80
Forward to: datacenter-tg (target group)
2.Go to EC2 → Target Groups → datacenter-tg → Targets

You should see:

datacenter-ec2
Status: healthy
EC2’s Security Group MUST Allow ALB Traffic
4.ALB Security Group Must Allow Public Traffic

5.Confirm Nginx Is Actually Running on EC2

6.Verify EC2 Is in the SAME VPC as the ALB

As I guess, because of this: ALB → EC2 :x: (blocked by SG / unhealthy target)