Reputation: 43
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
Upvotes: 4
Views: 2579
Reputation: 21424
Unfortunately, based on my research, AWS Lightsail cannot be accessed directly using private IP addresses with regular/non-Lightsail services, because Lightsail does not use your regular VPCs.
This includes and especially affects EC2 (Application/Network) Load Balancer.
To use Lightsail with other AWS services, you can set up VPC Peering. For how much, you may ask?
There is no charge for setting up or running a VPC peering connection. Data transferred across peering connections is charged at $0.01/GB for send and receive, regardless of the Availability Zones involved.
So, depending on your priorities, your options include:
Upvotes: 2
Reputation: 2157
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.
Upvotes: 2