Search code examples
amazon-web-servicesamazon-ec2amazon-lightsailamazon-elb

How do I use a EC2 load balancer with AWS Lightsail instance?


I am trying to install a wildcard certificate in my AWS lightsail instance load balancer. But the Lightsail instance does not allow wildcard certificate. Although EC2 loadbalancer allows wildcard certificate. Can anyone explain how i can use EC2 Load balancer with a Lightsail instance?

I tried this step by Mr. Colin. Wildcard SSL on Lightsail Load Balancer

But I dont see my instance there can anyone give a little bit more detail


Solution

  • From load balancer's target group creation, there is an option which uses IP address instead of Instance.

    So if you did mistakenly create the Instance option, you need to:

    1) Create another target group under IP address option.

    2) Add your LightSail instance's private IP address into the new target group.

    3) Ensure your LightSail security group to allow health check from load balancer.