# AWS Websocket route to lambda by ARN

**URL:** <https://forum.serverless.com/t/aws-websocket-route-to-lambda-by-arn/19741>\
**Category:** Serverless Framework\
**Tags:** api-gateway\
**Created:** [December 6, 2023, 3:30pm UTC](https://forum.serverless.com/t/aws-websocket-route-to-lambda-by-arn/19741 "2023-12-06T15:30:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennelm](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kennelm](https://forum.serverless.com/u/kennelm)\
**Post date:** [December 6, 2023, 3:30pm UTC](https://forum.serverless.com/t/aws-websocket-route-to-lambda-by-arn/19741/1 "2023-12-06T15:30:32Z")

</div>

I can see in the aws api gateway console that I can choose any existing lambda for a custom websocket route.  
How can I configure my sls yaml to route to a lambda that is defined in another project? All the examples show a handler that is local to the current serverless.yaml:

```auto
 customFooHandler:
    handler: handler.fooHandler
    events:
      - websocket:
          route: foo # will trigger if $request.body.action === "foo"

```

What I need to do is point this handler to a lambda using its ARN
