2 Answers
- Newest
- Most votes
- Most comments
1
API Gateway supports Web Sockets, which are based on HTTP. It does not support generic TCP connections.
You will need to use an NLB that front maybe some containers that run on Fargate, so you do not need to manage the infrastructure. This is not a serverless solution though.
0
You can use Lambda function for your code and host an Application load balancer with required port listener and target group to run your lambda function.
answered a year ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago
ALB only supports HTTP traffic, not arbitrary TCP connections. An NLB supports TCP traffic, but it does not support Lambda in the taaget group.