Invalid VpcLink id 8gdno9 referenced in integration

0

I created a VPC Link and can see the ID, yet when I try to connect a websocket route after setting it as a stage variable i get the error "Invalid VpcLink id 8gdno9 referenced in integration". What other ID should I be passing?

Enter image description here

If I do aws apigatewayv2 get-vpc-link --vpc-link-id 8gdno9 --profile sw --region us-east-1 I get

{ "CreatedDate": "2024-03-14T17:40:55+00:00", "Name": "N Virgina default", "SecurityGroupIds": [ "sg-093c1dd279bcefbc0" ], "SubnetIds": [ "subnet-0c6615fa0e7baf17a", "subnet-023c95cf1d67ae5bf", "subnet-0929c58fae3a0eb3e", "subnet-0c6fde6a37cf00331", "subnet-0f85eabd647061309" ], "Tags": {}, "VpcLinkId": "8gdno9", "VpcLinkStatus": "AVAILABLE", "VpcLinkStatusMessage": "VPC link is ready to route traffic", "VpcLinkVersion": "V2" }

This sure seems like a bug.

2개 답변
0

"VpcLinkVersion": "V2"

This indicates that the VPC Link is for HTTP API's. For use with Websockets and RestAPI, you need to create VPCLink for RestAPI

Ref: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-private-integration.html

profile pictureAWS
지원 엔지니어
Bony_T
답변함 한 달 전
0
  1. Verify VPC link is in AVAILABLE state; recreate if in FAILED state.
  2. Confirm VPC link endpoint connection is AVAILABLE.
  3. For WebSocket APIs, manually add connectionId as header on integration request.
  4. Ensure VPC link load balancer is configured on correct port; check network ACLs and security groups.
  5. Verify backend service allows inbound traffic and security groups are configured correctly.
  6. Examine integration logs for further details on failure, such as invalid configurations or network accessibility issues. https://repost.aws/knowledge-center/api-gateway-vpc-link-integration
profile picture
전문가
답변함 한 달 전

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

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

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

관련 콘텐츠