I set up load balancer to my instances. My instances are inside an Auto Scaling Group.
My load balancer has HTTPS listener with SSL certificate from AWS. For load balancer's security group has inbound rule set to https with port 443 and outbound rule set to https with port 443 and EC2 instance's security group.
Then EC2 instance has https inbound rule set to load balancer's security group and outbound rule is open to all. This scenario doesn't work and I can't load my website.
Then I added http inbound with 0.0.0.0/0 to EC2 instance's security group and I can load my website.
Why I can't set load balancer's outbound fix to ec2's security group and ec2's inbound fix to load balancer's security group?
I have SSL certificate with my domain name. But I can't load my website with https. Using http is fine. Why?