Typescript app doesn't recognize path from .yml file

I’ve been trying to deploy my app to AWS. I have deployed cron jobs this way, but when I try to deploy it says it can’t find module in index. There is no index file, and the path for the function handler should be pointing to dst/handlers/test-deploy. Is there something I’m doing wrong here?

You need to also include the function name.

assuming your test-deploy.ts has your function like:

export const myUserName: Handler = async (event: any) => {

then your path should be
handler: /dst/handlers/test-deploy.myUserName

Yep, that was the issue. I needed to add the function name to the handler. After I did that it deployed correctly.