Private Instance and Public ELB HTTPS Problem.

0

My VPC structure looks like this: VPC: 1 Public Subnet : 2 (1 Public Instance in each Subnet) Public ELB : 1 (Public ELB for Public Instance above) Public Subnet : 1 (for NAT Gateway) Private Subnet : 1 (1 Private Instance)

Here, the Private Instance should connect to the Public ELB. At this time, HTTPS communication should be established between the Private Instance and the Public Instance behind the ELB, but HTTPS communication is not possible because the Public ELB is playing an intermediate role. How can I solve the problem? Or is the structure wrong?

2개 답변
0

Hi.

Is the direction of the request below?

Private EC2 -> NAT Gateway -> Internet -> ELB -> Public EC2

  • If your ELB has an SSL certificate installed, you can.
  • If you want to use SSL when sending requests directly to EC2 with a private IP address within the VPC, you need to install an SSL certificate on EC2.
profile picture
전문가
iwasa
답변함 2년 전
0

Thanks for the detailed description.

If you don't want ELB to terminate HTTPS connection (i.e. use the certificate installed in the backend EC2), you could consider using NLB with TCP:443 listener [1]. Otherwise, importing and associating a certificate [2] with ELB will also work.

As a side note, moving back-end instances to private subnets ensures that clients only access your service through the ELB. [3][4]


[1] https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html

[2] https://aws.amazon.com/premiumsupport/knowledge-center/associate-acm-certificate-alb-nlb/

[3] https://aws.amazon.com/premiumsupport/knowledge-center/public-load-balancer-private-ec2/

[4] "Both internet-facing and internal load balancers route requests to your targets using private IP addresses. Therefore, your targets do not need public IP addresses to receive requests from an internal or an internet-facing load balancer." - https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme

AWS
weidi
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠