Security group for VPC Link / ApiGatewayV2 is not working

0

Hey there, I have set up a security group for my VPC link (AWS::ApiGatewayV2::VpcLink) on my API GATEWAY HTTP API V2 (AWS::ApiGatewayV2::Api). Even if I remove all the inbound rules I'm able to reach the server from the internet. Any ideas?

  • Did you ever figure this out?

1 回答
0

HTTP VPC Link is an integral part of API Gateway and it is better understood as being part of the same logical entity. What this effectively means is that API gateway does not actually send traffic to the VPC Link, it rather uses the VPC Link to send traffic to the Elastic Load Balancer.

Therefore, the Inbound Rules in the Security Groups attached to an HTTP VPC Link simply do not apply: all traffic to the VPC Link from API Gateway is always allowed because the VPC Link is not a foreign entity, it is internal to API Gateway. On the other hand, Outbound Rules do apply because the traffic is sent outbound to a foreign entity (an ELB).

AWS
支持工程师
已回答 10 个月前

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

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

回答问题的准则