AWS Load Balancer not reaching LightSail instance

0

I would like to protect my lightsail instances with a AWS-WAF. For that, I need an EC2 Load Balancer instead of the lightsail one. I´ve implemented the following steps (all with root user):

  1. Enable VPC peering in lightsail, on the correspondent zone, let say 'Ireland'.
  2. AWS VPC is default and in Ireland.
  3. Create a Target Group of type IP Address, on previous default VPC; Network 'Other Private IP Address' and the private address of the lightsail instance (instance has an apache listening on port 80). Checked that targets are 'Healty' on Target Group.
  4. Create a LoadBalancer in the Default VPC, with the previous created Target Group, and with zones 'a' and 'b' of Ireland. Zone 'a' is the zone of where the lightsail instance is.
  5. On Route 53 created a public hosted zone, with the name of my domain (registered directly in Route 53).
  6. Create a DNS A record of type 'Alias', with linked point 'Alias Application Load Balancer', in region Ireland and pointing to previous created Load Balancer (showed for selection with the name of the LB, but wit 'dualstack.' appended to it). 6.1. Also tried resolving the LB DNS and creating the DNS A record to point directly to the IP instead of the 'Alias'.

After all these steps, when trying to browse to my domain, I´m getting an "ERR_CONNECTION_TIMED_OUT".

Ping to domain resolves to same ip that Load Balancer DNS; Security Groups in AWS allow all traffic; there is route in AWS to internal network of LightSail (created automatically when peering VPCs in step 1); ACL or Firewall are allowing all traffic; on ligthsail all traffic is allowed as well.

What I could be missing? At that point and with all the steps reviewed, I can´t not figure out where the issue is.

Pepelu
已提问 2 年前579 查看次数
2 回答
0

Have you checked the security group associated to the AWS ALB if it is allowing 0.0.0.0/0 inbound?

AWS
已回答 2 年前
0

Hello Tim,

Issue is already solved. What did I do? I just logged out and login again. I know it sounds dumb but is what I did and suddenly after loging again, browsed to my domain and there it was the content of my LightSail instance.

In some part of the documentation I had read something about log out and login, but it was in the case you implement things with different account, which what not my case as I did everything with the root account.

Thanks and regards.

Pepelu
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则