Using AWS, I want my backend to listen to a websocket connection from an external server (that I do not control). This websocket connection emits market data.
Each time the external server pushes data onto the websocket, I want a Lambda function to be triggered. To be clear: In this situation, AWS acts as the client.
Is it possible to achieve this functionality in a serverless manner (without using EC2)?
I looked into AWS IoT pub/sub and API Gateway/w WS, but these services do not act as the client (I might be wrong though)