I try to allow HTTPS connection to my ELB from my public IP and my EC2 instance (from their public IP).
Like:
But I didn't know how I can allow my EC2 instances . Do you know how I can do that ?
Thanks in advance for your help ;)
I try to allow HTTPS connection to my ELB from my public IP and my EC2 instance (from their public IP).
Like:
But I didn't know how I can allow my EC2 instances . Do you know how I can do that ?
Thanks in advance for your help ;)
First thing, your instances should not have a direct link to internet. That is not safe. If you have to have it, then setup a NAT instance/gateway to allow this connection just for outbound from EC2 instances.
To answer your question, the best solution as per me to allow the connectivity between your EC2 instances and your ELB is to configure ELB security group to open only required protocols and ports for outbound connections to the security group of EC2 instances. And, on EC2 instance security group, open the inbound connectivity from ELB security group only for required protocols and ports.
I hope this helps.