How does APIGW -> VPC Link -> Public ALB works?

0

I have an architecture wherein APIGW has a private integration usign a VPC link to a public ALB?

Assuming that I cannot change the architecture, what should be my security group rule for ALB? Currently, I have a 0.0.0.0 inbound rule, can I restrict it to something?

1 回答
0

Hi Exter, now that I got some context also from your other questions, it feels like something is odd. I see the current architecture you have is as it follows: APIGW -> VPC Link -> Private NLB -> Public ALB.

The part that seems odd is that your architecture is placing a public ALB behind a private NLB, instead of a private/internal ALB, (as APIGW -> VPC Link -> Private NLB -> Internal ALB). I assume you cannot change the architecture, but typically, with public ALBs, you would just use API Gatewat http integrations, while VPCLink fits more for private integrations.

To answer your question, VPC Link require a Network Load Balancer, so, as your Application Load Balancer is a target of the NLB, you should follow this: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-update-security-groups.html.

profile picture
专家
已回答 1 个月前
  • No, The current architecture is :

    APIGW -> VPC Link -> Public ALB.

    The ALB Security group has an inbound rule for 0.0.0.0/0 which is what I want to avoid. I can make architecture change if it is a must but the ALB has to be public.

    Introducing NLB is one of the options I found....

  • Are you sure that you are linking the VPC Link directly with a public ALB? Can you share details of VPC LInk, because even when you go to UI, when creating a VPCLINK, you can only associate it with a Network Load Balancer, as you cannot have VPCLink -> ALB directly.

  • Yes, I am sure that APIGW is linked to public ALB using VPC link.

    We can link both NLB/ALB using VPC Link:

    https://repost.aws/knowledge-center/api-gateway-alb-integration

    Integration type: Private resource Target service: ALB

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容